ronakamlani / fairTaskBackend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

This project build for an education purpose only using Nest.js, Typescript, nodeMailar.

Installation

$ npm install
$ npm install --force #in the case of ts-jest could problem.

Config .env

create .env file root of the folder and insert value according to env.example

Database migrations

npm run make:migration-initial #To build a schema 
npm run migrate #To migration
npm run migrate:rollback #To rollback migration
npm run migrate:destroy #To destory all migrations

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Add Data

You can import postman script available at ./postman/FairTask.postman_collection.json simply import this file to your postman and hit collection/create 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


Languages

Language:TypeScript 99.8%Language:Handlebars 0.2%