- Todo list built using Hapi.js and Prisma ORM
- Postgres database is used and vitest for test
- clone it
- cd into main directory
- set node version greater 16.x
- install postgres db in your local machine
- after postgres running and adding DATABASE_URL to .env
- add environment=development to .env
- run command
yarn install
inside main directory in terminal - run command
yarn migrate:dev
andyarn migrate:deploy
- run command
yarn dev
to start serverhttp://localhost:3000/tasks
- run command
yarn prisma:studio
to view database in browser using prisma
- make sure you have run the app
- run command
yarn vitest
to test the app - run command
yarn vitest:coverage
to test coverage of app
- install first docker into your local machine
- And after installation, run command
docker-compose up -d
- run command
http://localhost:3000/documentation?tags=api
to view swagger