This repo contains full-stack project ZeroWaste where shops can show their products with discount for proximity of expiration date and users can see in which shop around them is the best option.That's ake both of them save and help the enviroment.
Zerowaste use angularJs for the client part, and for the server part it is used NodeJS and ExpressJS.
You need to have installed NodeJS with npm, bower and MongoDB
You need to create an .env file in the project root with the following environment variables configured:
- Port:
PORT=3000
- Mongodb path and database to use:
DB_URI=mongodb://localhost:27017/dbName
npm start
All dependencies will be installed automatically
The server part has four end points.
/api/products
-> Serves to add products to the database and get the products.
/api/product
-> Serves to remove and update the products
/api/shop
-> Serves to remove and update shops.
/api/shops
-> Serves to add shops and get them all.
- SublimeText
- Front-end
- AngularJS 1.6.3
- Angular-route: 1.6.3
- Bootstrap: 3.3.7
- Font-awesome: 4.7.0
- Back-end
- express: 4.15.2
- dotenv: 4.0.0
- body-parser: 1.17.1
- mongoose: 4.9.0
- bower: 1.8.0