This service provides endpoints for users to signup and track their in-take food calories and to see if it's violating their goal
- Node >= 14.x.x
- npm >= 6.x.x
- MariaDB Server
- Clone the project into your machine and navigate to the project
- Install dependencies using
npm install
- Add
.env
file undersrc/
with appropriate values (referexample.env
) - Run the service using
npm start
(database is enough, tables will be created on service start)
- Add
test.env
file undertest/
(refer :test_example.env
) - To run unit tests:
npm test
ornpm run test
- To run E2E tests:
npm run test:e2e
- To run both unit and E2E tests:
npm run test:all
- To run for code coverage:
npm run coverage