npm packages used Nodejs, Expressjs, Mysql and Istanbul, Mocha, Chai for test case and coverage
Make sure you have mysql installed and running on your system.
- Create a database with name
library
- Clone or download
digital-library
now - Goto inside
digital-library
folder - Open terminal and run
npm start
. Navigate tohttp://localhost:4200/
. - Go to inside server folder
- Open another terminal and run
npm start
. it will start your service
Database configuration file you can find here ./server/config
- Install Istanbul globally
npm install -g istanbul
- Inside server folder execute
npm run coverage
for test coverage - Run
npm test
for test cases