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
Use Docker in order to create an image for a local database
# build and lauch docker image
$ docker compose up dev-db -d
You can use PostgreSQL for the database ;
At the root of this project, create a .env file with the environment variables
NB : the local database is created thanks docker-compose.yml
file
DATABASE_URL="postgresql://postgres:456@localhost:5434/todolist?schema=public"
JWT_SECRET="InternetIsTheNewFrontierOfScience"
# generate cmd
$ npx prisma generate
# build db structure depending model on prisma schema
$ npx prisma db push
# display prisma stuid UI on localhost:5555
$ npx prisma studio
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.