Hotel management is impossible to do properly without a system. Therefore, this project aims to offer an API able to perform daily tasks in this context.
There are some prerequisites to run this project:
- Install the correct NodeJS version (use
nvm
) - Install Docker and
docker compose
# install dependencies
$ yarn install
# start database
$ yarn database:up
# create local env
$ cp .env.example .env
# seed the local database
$ yarn job:seed
# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
# unit tests
$ yarn run test
# e2e tests
$ yarn run test:e2e
# test coverage
$ yarn run test:cov