This project serves as the backend for CHG_APP, designed to monitor the consumption of hospital patients. It supports multiple users, roles, and permissions to ensure security and data integrity are maintained.
The technology stack has been intentionally kept minimal to reduce complexity and potential points of failure.
Made with:
- node 16.14
- postgres
make a .env file (check .env.production and env.development for an example)
cp .env.development .env
install all dependencies
npm run install
if it is the first time running it you should migrate the database schema and seed the database
npm run migrate
npm run seed:run #(make file src/common/db/seed-data/product-list.csv)
We provide a docker-compose file to make development easier.
docker-compose up -d
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
- Author - Jesús Rebollar
- Website - CHG
chg-consumption-sheet is licensed under Apache 2