This is a blog's api
application created by NestJS
NestJS
Express
TypeScript
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# build to create dist/main.js
$ npm run build
# pm2 to start api service
$ pm2 start dist/main.js --name "nestjs-api"
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
.env
file as follows:
- API_PORT=[avoid 5000]
- DB_HOST=localhost
- DB_PORT=3306
- DB_USERNAME=
- DB_PASSWORD=
- DB_DATABASE=
Client blog repo: nextjs-client-blog