A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
This project, please use NestJS v8.x
for use DB library.
Run following command.
$ npm i -g @nestjs/cli@8.2.8
$ npm install --save typeorm@0.2.45 @nestjs/typeorm@8.0.2 pg
Attention : typeorm v0.3 is unrecommended.
First, execute migration:generate command(hoge.ts) for create migration file. Next, npm run start
to compile typescript file to javascript file. Finally, execute migration:run command.
# Create migration file.
$ npx typeorm migration:generate -n 'migration-file-name'
# Execute migration(SQL).
$ npx typeorm migration:run
For use docker compose, install Docker Desktop, and run following command.
$ docker-compose up -d
After starting Docker, access http://localhost:81
and type username and password.
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.