Nest.js API. PostgreSQL, Redis
- Support ES6/ES7 features
- Using Eslint followed Airbnb JavaScript Style Guide
- Husky
- Commitizen
- Docker
- Prettier
- passport local strategy
- jwt authentication
- PostgreSQL
- Redis
- supertest
- node >= 16
- npm >= 8
- postgresql >= 12.0
- typescript >= 3.0
App Skeleton
├── src
│├── routes
││├── app
│││ └── ...
││├── v1
│││├── auth
││││ └── ...
│││└── users
││ └── ...
│├── dto
││└── ...
│├── filters
││└── ...
│├── guards
││└── ...
│├── main.ts
│└── pipes
│ └── ...
├── docker-compose.yml
├── index.js
├── nest-cli.json
├── package.json
├── package-lock.json
├── README.md
├── tsconfig.build.json
└── tsconfig.json
Local:
npm run build
npm run schema:sync
npm run migrationDocker:
sudo docker exec -it app bash
npm run migration
To start the application in development mode, run:
npm run start:devsudo docker-compose up
Example environments you can find in .env.example.
Swagger documentation will be available on route:
http://localhost:3000/api