Parking Lot
Setup
- Requires
nodejs >= 8
- Run
npm install
in the directory to setup - Migrate the database to mysql from
migrations/database.sql
, create two DB(s) from dev & testing - Mysql credentials can be found in
config/db.js
create database `parking`;
create database `parking_test`;
- To run build, run
npm run build
, this convertsES6
tojs
intodist/
directory - To start the API server, run
npm start
ornpm run start
- To run the test cases, run
npm test
ornpm run test
, coverage can be checked incoverage/lcov-report/index.html
file.
Docs
postman.json
can be imported to postman to check the APIsdocs/index.html
folder consists of swagger version.