School project: help the winegrower of the Château Luchey-Halde in Bordeaux to manage his wine cellar by offering him an interactive map to add, remove bottles or boxes (bottles containers).
Clone the project:
git clone https://github.com/lerami/meteor-wine-cellar-management.git
Run it with meteor:
cd meteor-wine-cellar-management
meteor
You'll need to install Meteor first if not already installed on your machine.
The project comes up with a rest API to provide access from a remote app (mobile app) to the MongoDB database.
(address-of-your-project is by default localhost:3000)
address-of-your-project/api/boxes
address-of-your-project/api/boxes/id/:_id
Get boxes by criterias. It is not obligatory to fill in all the criterias ; just write "null" in the fields you do not want to search by.
address-of-your-project/api/boxes/search/color/:color/ref/:ref/year/:year
Example : Search all the "Rouge" (red) wines from 2015 (any refs)
address-of-your-project/api/boxes/search/color/Rouge/ref/null/year/2015
(NB : note that it ADDS the quantity :qty to the box :_id ; if the previous quantity of bottles was 100 and you set :qty to 50, after your request the final quantity in the box you'll be 150)
address-of-your-project/api/boxes/add/:_id/:qty
(NB : note that it REMOVES the quantity :qty to the box :_id ; if the previous quantity of bottles was 100 and you set :qty to 50, after your request the final quantity in the box you'll be 50)
address-of-your-project/api/boxes/remove/:_id/:qty
address-of-your-project/api/boxes/color/:_id/:color
address-of-your-project/api/boxes/year/:_id/:year
address-of-your-project/api/boxes/ref/:_id/:ref