Backend for RESTaurant management system.
Frontend in mertinop/restaurant-front
- Express
- Mongoose (MongoDB)
- Passport
- connect-roles
Used or to use during the development
- https://code.tutsplus.com/es/tutorials/authenticating-nodejs-applications-with-passport--cms-21619
- https://gist.github.com/staltz/868e7e9bc2a7b8c1f754
- http://thecodebarbarian.com/mongoose-virtual-populate
- http://www.passportjs.org/docs/username-password/
- http://expressjs.com/es/api.html
- http://mongoosejs.com/docs/api.html
- https://github.com/ForbesLindesay/connect-roles
- name - string (required)
- show - boolean
- products - [Products]
- name - string (required)
- price - number
- description - string
- recipe - [RecipeItem]
RecipeItem:
- ingredient - Ingredient
- quantity (number)
- name - string (required)
- stock - number
- unit - string
Add an ingredient to the product's recipe.
{ ingredient: IngredientId, quantity: number }
Updated product
Remove an ingredient from the product's recipe