Skip to content

raguilera82/nestjs-workshop

Repository files navigation

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.

Installation

$ npm install

You need an instance of Docker and Docker Compose on your local machine

Running the app

Before, you need to up the database

$ npm run db:up

After, running the application

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

To run all test and calculates coverage, it is important the database is down.

$ npm run verify

For invidual executions:

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Way to force a sleep

sleep(ms) {
  return new Promise((resolve) => {
    setTimeout(resolve, ms);
  });
}

Then,

await sleep(3000); //sleep 3 seconds

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

Project to play with NestJS

Resources

Stars

Watchers

Forks

Packages

No packages published