Skip to content

An AI-enabled running environment for: Typescript, Express, TypeORM, CNA (create-next-app), Bull and more.

Notifications You must be signed in to change notification settings

ceceradio/atlas

Repository files navigation

atlas-commmunesoft

atlas, a world carrying environment

requirements

nvm node18 docker ext prettier-vscode ext eslint

setup

  1. npm run docker-setup
  2. prepare an auth0 app/api and openai key
  3. create and fill ./.env.api (create it by copying ./.env.api.template)
  4. create and fill ./.env.next (create it by copying ./.env.next.template)

starting atlas

  1. npm run docker and open

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.

creating an organization and user on cold start

  1. cd api
  2. npx ts-node ./src/cli registerOrganization
  3. use string from above command as input to npx ts-node ./src/cli registerUser --uuid=
  4. follow the link in the terminal and use auth0 to log in.

folder map

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)

migrations

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.

About

An AI-enabled running environment for: Typescript, Express, TypeORM, CNA (create-next-app), Bull and more.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages