-
Clone repository
git clone --depth 1 https://github.com/brocoders/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
Change
MAIL_HOST=maildev
toMAIL_HOST=localhost
-
Run additional container:
docker compose up -d postgres adminer maildev
-
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/brocoders/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
nestjs-boilerplate-installation.mp4
- Swagger (API docs): http://localhost:3000/docs
- Adminer (client for DB): http://localhost:8080
- Maildev: http://localhost:1080
Previous: Introduction
Next: Working with database