Skip to content

Rajeshwari-Rudra/rr-nest-api

Repository files navigation

rr-nest-api

Description

  • Nest framework TypeScript starter repository.
  • NestJS is a framework,mainly used in building server-side applications based on Node.js.It supports most of the databases like PostgreSQL, MongoDB, MySQL.
  • It is a Powerful command line interface(CLI) which enhances the productivity and development.
  • It is open-source(MIT license) and easy for unit-testing applications.
  • With NestJS you can build Rest API’s, MVC applications, microservices, GraphQL applications, Web Sockets or CLI’s and CRON jobs.
  • It uses the best of Node.js, TypeScript, and bullet-proof architectural patterns.
  • The structure of this NESI app is mostly based on Angular.
  • Add a halderbars named 'hbs' template to repo.

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

Adding Resources

  • From project directory,run "nest generate resource quest"
  • Select REST (hit return) and Y (generate entry pts).
  • There is an interface and a data transfer object(dto).
  • Use npm i --save @nestjs/mapped-types to install mapped-types
  • Add this resource folder "quest" to repo and then commit.
  • Run the hosted app on Heroku after pushing the changes to GitHub repo.

Links

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.

References

License

Nest is MIT licensed.

Releases

No releases published

Packages

No packages published