Skip to content

Leninner/imc_project_back

Repository files navigation

IMC API

Description

This is a project to calculate the IMC of a person.

Requirements

Installation

$ nvm use
$ npm ci

Prepare the local database

In your local .env file put the following variables:

# Local development environment variables
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_USER=admin
DATABASE_PASSWORD=admin
DATABASE_NAME=postgres
$ docker compose --env-file ./.env up -d

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

License

Nest is MIT licensed.