Skip to content

knowicki024/capstone-cookbook

Repository files navigation

Capstone Cookbook Application

Katie Nowicki

Your own digital cookbook! Keep all your recipes in one location instead of scrolling through endless apps to find something to cook up. Create your own recipes, change different recipes to make them more personalized, search through your collection to be able to plan the week or a special event.

domain model

erd

Setup and Install to Deploy:

To run the application, create a split terminal. In the first terminal run:

cd server
pipenv install 
pipenv shell 
python seed.py
python app.py

In the second terminal, run:

cd client
npm install
npm start

MVP

C. Add recipes, users, meal plans

R. View recipes users, meal plans

U. Update recipes, meal plans

D. Delete recipes, meal plans

Backend(API)

Models

  • A User has many Meal Plan through Recipe
  • A Recipe has many Meal Plan through User
  • A Meal Plan belongs to Recipes and User
  • A Category belongs to Recipes

Validations

  • Add validation to Recipe Model

    • must have name, ingredients, directions, category_id
  • Add validation to User

    • must have name
    • must be string between 1 and 20 characters
  • Add validation to MealPlan

    • must have a date.

Controllers

GET /users
POST /users
GET/category 
POST/category
GET /recipes
POST /recipes 

GET /recipes/<int:id>
PATCH /recipes<int:id>
DELETE /recipes/<int:id>
GET /meal_plan
POST /meal_plan 

GET/meal_plan/<int:id>
PATCH /meal_plan/<int:id> 
DELETE /meal_plan/<int:id>  

Serilizers

Front End (React)

component tree

  • User can implement full CRUD on client side for recipes that persists to the server

  • User can navigate through application through NavBar and React Routers

  • User can add new recipes and meal plans through recipes

WireFrame

Wireframe

Stretch Goals:

  • Full CRUD for all Models and Components
  • Social Media Application
  • Add more models and components
  • Create tests for application

Keep Track of Progress:

Trello

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published