/heroes-api

REST API server for tour of heroes with Node.JS, Express, MongoDB.

Primary LanguageTypeScript

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

NPM Version Package License NPM Downloads Travis Linux Coverage Gitter Backers on Open Collective Sponsors on Open Collective

Description

Nest framework TypeScript starter repository.

REST API tour of heroes app

dependencies: Node.js, NestJS, MongoDB

Installation

  1. Create MongoDB database with name heroes_api and collection name heroes.

  2. Import data from heroes_db.json file.

  3. Run npm install for installing dependencies.

$ 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