The backend was made for calculating the delivery costs with additional features to be implemented .
express: NodeJS framework for creating app in server with a REST APImongo: MongoDB in Mlab and Mongoose for storing/fetching static data for the appfirebase: Firebase Admin SDK for syncing authentication with front-end Firebase, implemented with passport-custom
Deployed to Heroku under ShopBuddy with initial data populated in Mlab .
* `Get all categories`: http://api-shopbuddy.herokuapp.com/categories
* `Get product by id`: http://api-shopbuddy.herokuapp.com/products/id/:id
* `Get products by category`: http://api-shopbuddy.herokuapp.com/products/category/:categoryid
* `Get stores by id`: http://api-shopbuddy.herokuapp.com/stores/id/:storeid
Authentication via Firebase for certain routes to be implemented .
npm
- Install dependencies:
npm install - Start the server with nodemon:
npm startdev