Nest framework TypeScript TypeORM Monolithic starter repository.
# 1. Clone the repository.
git clone https://github.com/Rapid-learnings/nestjs-template
# 2. Enter your newly-cloned folder.
cd nestjs-template
# 3. Install dependencies. (Make sure yarn is installed: https://yarnpkg.com/lang/en/docs/install)
yarn
# 4. Run development server and open http://localhost:3000
yarn start:dev
# Run below command inside nestjs-template folder in terminal
docker-compose up
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov
open http://localhost:3000/docs
PORT=3000
JWT_SECRET_KEY=rxPhglGJWPlOW596
JWT_EXPIRATION_TIME=3600
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_DATABASE=demo
SENTRY_DSN='sentry-dsn'
Generate migration from database
yarn migration:generate initialMigration
Run migrations
yarn migration:run
- Quick scaffolding
- Create modules, services, controller - right from the CLI!
- Instant feedback
- Enjoy the best DX (Developer eXperience) and code your app at the speed of thought! Your saved changes are reflected instantaneously.
- JWT Authentication
- Installed and configured JWT authentication.
- Next generation Typescript
- Always up to date typescript version.
- Industry-standard routing
- It's natural to want to add pages (e.g. /about`) to your application, and routing makes this possible.
- Environment Configuration
- development, staging and production environment configurations
- Swagger Api Documentation
- Already integrated API documentation. To see all available endpoints visit http://localhost:3000/documentation
- Linter
- tslint + eslint + prettier = ❤️
Nest is MIT licensed.