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

This project is a challenge to create a REST-API using Nest framework with Prisma ORM.

Demo:

Demo Link

Installation

$ npm install

Configure the environment

DATABASE_URL=
NODE_ENV=
PORT=
JWT_SECRET=
JWT_EXPIRES_IN=
SENDGRID_API_KEY=
SENDER_EMAIL=
AWS_REGION=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_PRIVATE_BUCKET_NAME=

Prisma

# migrate database
$ npx prisma migrate dev --name init

# seed database
$ npx prisma db seed

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

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.

Authors

Alexander Pinto

Patrick Lazo

License

Nest is MIT licensed.