Skip to content

Simple api built using nestjs, prisma, postgres and docker

License

Notifications You must be signed in to change notification settings

zoharyAnd/nestjs-sample-api

Repository files navigation

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 is a simple api built using nestjs, prisma, postgres and docker using the Nest framework TypeScript starter repository.

Installation

$ npm install

Launching the Postgres Database locally

docker-compose up -d

add this key value pair to your .env file

DATABASE_URL="postgresql://postgres:password@localhost:5432/nestapi?schema=public"

Apply the initial migration

npx prisma migrate dev

Seed database using prisma

npm run prisma:seed

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Visit the swagger at

http://localhost:3000/api

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.

Stay in touch

License

Nest is MIT licensed.

About

Simple api built using nestjs, prisma, postgres and docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published