Backend server and front end web application for reporting statistics of issued data from smart-breathalysers
-
- Install
NodeJS - Install
npmandnpm install express-generator -gto install express generator - Download all the files & go to webapp directory
- Then,
npm installas dependencies in to webapp directory - Then, type
set DEBUG=webapp:* & npm start - Check
http://localhost:3000in your browser
npm --save install mongoosein to webapp directorynpm --save install requestin to webapp directory
- Install
-
- Install
MongoDB - Create Database
breathalyzer_dbon MongoDB
- Install
- Start
MongoDBserver {command :mongod} - Start our app server {command :
npm start@ webapp directory}
- check `localhost:3000`
- Hit on the browser `localhost:3000/caseFor?nic=930272645v&veh=86465&alco=85.5&lat=7.2906&lng=80.6337`
If you want to seed some data to database,
- Start
MongoDBserver - Then run
node cases_seeder.js@ seed folder
- You have to get
Google Map API Key& use it to 31 line of index.js @routes folder