AD410 Project by Alex Sutherland, Andy Wilson, Paul Briones, Phil Kim
Welcome to TastyByte 🥒🥕🥦🧅🍽️, a social network for foodies to share their favorite recipes. Built with React, Node, Express, and MongoDB.
backend
folder contains backend Express app. To run this server:
- open new terminal
- cd into
backend
directory - run the following command:
npm install
- run the following command:
npm run server
client
folder contains frontend React app. To run this server:
- open new terminal
- cd into
client
directory - run the following command:
npm install
- run the following command:
npm start
- ES6 JavaScript (let, arrow functions)
- Constants are in all caps
- Components are capitalized
- Use camelCase whenever possible
The following routes can be used to test and retreive data via Postman:
http://localhost:8080/api/recipe/
Returns all recipe objects
http://localhost:8080/api/recipe/
Insert recipe object into database like below; customize values as desired
{
"name": "Recipe Name",
"author": "Recipe Author",
"description": "Recipe Description",
"instructions": "Recipe Instructions",
"ingredients": [
"Ingredient 1",
"Ingredient 2",
"Ingredient 3"
],
"photo": "Photo URL",
"tags": [
"tag1",
"tag2",
"tag3"
]
}