atlas, a world carrying environment
nvm node18 docker ext prettier-vscode ext eslint
npm run docker-setup- prepare an auth0 app/api and openai key
- create and fill
./.env.api(create it by copying./.env.api.template) - create and fill
./.env.next(create it by copying./.env.next.template)
atlas requires multiple pieces of software to run. in order to assist, the root package.json is equipped with some helper scripts. npm run docker and npm run docker-reset can be used to start and reset the local development environment. once the software has started, direct your browser to .
this is too early for production, but if you were going to run it in production at scale, you'd likely want to deploy it with different scripts.
cd apinpx ts-node ./src/cli registerOrganization- use string from above command as input to
npx ts-node ./src/cli registerUser --uuid= - follow the link in the terminal and use auth0 to log in.
hopefully this map helps you find your way.
/
-/api (express)
--/src
---/app (express apps)
---/atlas (atlas API functions)
---/cli (cli commmands)
---/entity (typeorm entities)
---/interface (ts types for typeorm, exported by package)
---/migration (generated, probably dont need to change)
---/queue (bull queues)
---/ws (websocket server)
---datasource.ts (postgres connection)
-/next (what it says on the tin)
-/nginx (configuration)
npm run make-migration will generate a migration based on the current state of the entities. development mode will sync changes from ./api/src/entity/ to the database automatically.
you probably don't need this feature unless you are working with a production environment that wont be synchronized. currently that is not configurable.