-
Clone repository
git clone --depth 1 https://github.com/atlas-cli/nestjs-boilerplate.git my-app
-
Go to folder, and copy
env-example
as.env
.cd my-app/ cp env.example .env
-
Change
DATABASE_HOST=postgres
toDATABASE_HOST=localhost
-
Run additional container:
docker compose up
-
Install dependency
npm install
-
Run migrations
npm run migration:run
-
Run seeds
npm run seed:run
-
Run app in dev mode
npm run start:dev
If you want quick run your app, you can use following commands:
-
Clone repository
git clone --depth 1 https://github.com/atlas-cli/nestjs-boilerplate.git my-app
-
Go to folder, and copy
env-example
as.env
.cd my-app/ cp env-example .env
-
Run containers
docker compose up -d
-
For check status run
docker compose logs
- Swagger (API docs): http://localhost:3000/swagger/docs
Next: Working with database