Skip to content

kevinn03/CaribbeanHeat_back

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caribbean Heat restaurant Backend

Explore CaribbeanHeat

Caribbean Heat is a restaurant website that allows users to browse the menu and make take out orders online. This website is my modern version take of the original https://caribbeanheat.ca

Instructions

  • clone this repository
  • run npm install inside root directory and frontend directory
  • run the seed file
  • run npm run dev in root directory
  • navigate to localhost:3003 in your browser

caribbean heat pic

Technologies

Frontend

  • React.js
  • Bootstrap

Backend

  • MongoDB
  • Express.js
  • Node.js

Api providing endpoints that allow for:

  • Getting all menu items
  • Getting specific menu item
  • Getting all orders
  • Creating an order

Endpoint Documentation

GET /api/items

Returns a list of all the menu items.

Successful Response:

[{
title: "Crab Soup",
price: 7.08,
category: "Soup",
image: "https://storage.googleapis.com/bro-cdn1/zgrid/themes/11951/images/items/soup/fish-maw-crab-meat.jpg",
id: "61edc57a1e1f7b4a69be41f2"
},
{
title: "Chicken Wonton",
price: 7.08,
category: "Soup",
image: "https://storage.googleapis.com/bro-cdn1/zgrid/themes/11951/images/items/soup/won-ton.jpg",
id: "61edc57b1e1f7b4a69be41f9"
},
{
title: "Sweet Corn With Chicken Soup",
price: 7.08,
category: "Soup",
image: "https://storage.googleapis.com/bro-cdn1/zgrid/themes/11951/images/items/soup/chicken-corn.jpg",
id: "61edc57b1e1f7b4a69be41fd"
},
{
title: "Spring Roll",
price: 1.75,
category: "Deep Fried",
image: "https://storage.googleapis.com/bro-cdn1/zgrid/themes/11951/images/items/appetizers/pork-spring-roll.jpg",
id: "61edc57b1e1f7b4a69be4201"
}]

GET /api/items/{id}

Returns a item on the menu based on item.

GET /api/orders

Returns all orders

POST /api/orders

Creates an order

This to do

  • Add error handling
  • Add testing
  • Restructure subroutes
  • Add Admin page
  • Add statistics
  • style

About

Backend for Caribbean heat restaurant website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published