This is my NestJS Boilerplate made with ❤️.
- Node.js 16 (if you use nvm:
nvm use
) - Docker 19.03.0+ (Docker Compose Version: Compose Specification)
- Nest CLI 9
- Make sure port:
8080
is available for adminer. - Clone the repository
## via SSH
git clone [email protected]:elrmndo/nestjs-boilerplate.git
## via HTTP
git clone https://github.com/elrmndo/nestjs-boilerplate.git
- Setup environment variables
cp .env.example .env
- Build the docker services (PostgreSQL, Adminer)
docker compose build
- Install the dependencies
npm install
- Run database migrations and seeders
# Migrations
npm run migration:run
# Seeders
npm run seeders:run
Note: Make sure docker services are running and you have installed the dependencies.
# Non watch mode
npm start
# With watch mode
npm run start:dev
# Debug mode
npm run start:debug
# Non watch mode
npm test
# With watch mode
npm run test:watch
# e2e Non watch mode
npm run test:e2e
# e2e watch mode
npm run test:e2e:watch
# coverage
npm run test:cov
TBD