Skip to content

Latest commit

 

History

History
108 lines (76 loc) · 3.95 KB

README.md

File metadata and controls

108 lines (76 loc) · 3.95 KB

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Development Environment

Use Docker in order to create an image for a local database

# build and lauch docker image
$ docker compose up dev-db -d

Database

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"

Prisma

# 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

Support

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.

Stay in touch

License

Nest is MIT licensed.