/nest-podex

Primary LanguageTypeScript

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

Nest framework TypeScript starter repository.

Installation

yarn install

Nest CLI

npm i -g @nest/cli

Up Database

docker-compose up -d

Config dev environment

  • Clone field .env.template and rename copy to .env

  • Fill in the defined environment variables in the .env

  • Running the application in dev

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Building database with seed

# http request
$ http://localhost:3000/api/v1/seed

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov

Production Build

  • Create file .env.prod
  • Filling in the environment variables of prod
  • Create new image
docker-compose -f docker-compose.prod.yaml --env-file .env.prod up --build

Used Stack

  • MongoDB
  • Nest / TypeScript

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.