Skip to content

RESTaurant management system. REST API using express+mongoose.

License

Notifications You must be signed in to change notification settings

martinsantibanez/restaurant-back

Repository files navigation

RESTaurant [backend]

Backend for RESTaurant management system.

Frontend in mertinop/restaurant-front

Stack

  • Express
  • Mongoose (MongoDB)
  • Passport
  • connect-roles

Useful links

Used or to use during the development

ToCheck

Open Source Projects

Tutorials

Docs

Models

Category

  • name - string (required)
  • show - boolean
  • products - [Products]

Product

  • name - string (required)
  • price - number
  • description - string
  • recipe - [RecipeItem] RecipeItem:
    • ingredient - Ingredient
    • quantity (number)

Ingredient

  • name - string (required)
  • stock - number
  • unit - string

Endpoints

POST /products/:id/recipe

Add an ingredient to the product's recipe.

Request Body

{ ingredient: IngredientId, quantity: number }

Returns

Updated product

DELETE /products/:id/recipe/:ingredient_id

Remove an ingredient from the product's recipe

About

RESTaurant management system. REST API using express+mongoose.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages