A parking lot API, built on Node/Express.js to understand Test Driven Development (TDD) in Node/Express.js based Apps.
Experimented with,
- Chai and Mocha
- JEST and Supertest
- If using app without Docker, change
mongo
tolocalhost
in enviornment variables (Refer .sample.env) - rename
.sample.env
to.env
- cd into
ParkingLot
- Run
docker-compose up
- Check exec status via
docker ps
if container running proceed. - Access API at port 7000.
- cd into
ParkingLot
- Run
npm install
- Run
npm test
- to test app - Run
npm run start
to start app andnpm run start:dev
to start in development mode (live-reloading) - Access API at port 7000.