Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate database for Add Your Own page #123

Open
charlottexlin opened this issue Apr 11, 2023 · 0 comments
Open

Integrate database for Add Your Own page #123

charlottexlin opened this issue Apr 11, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@charlottexlin
Copy link
Contributor

charlottexlin commented Apr 11, 2023

Related to user story #9

Prioritize #122 over this task - this feature is not essential and can be simplified or removed. #122 is essential.

If you have a lot of time

  • In the front-end for the Add Your Own page, make it so the user can upload the recipe name, picture, and list of ingredients. The user also can not type in the price of this custom recipe (because the price will be dynamically calculated by the Meal Plan route instead).
  • In the POST route for the Add Your Own page, validate the data the user entered in the form
  • If it is valid, make it into a Recipe document and save it in the user’s Meal Plan in the database

If you do not have a lot of time

  • In the front-end for the Add Your Own page, make it so the user can upload the recipe name and recipe price only. Remove the prompts for image and ingredients.
  • In the POST route for the Add Your Own page, validate the data the user entered in the form
  • If it is valid, make it into a Recipe document with only name and price, and save it in the user's Meal Plan in the database

If you have no time

  • Remove this feature from the app (i.e. delete the routes for it in the back-end, and adjust the front-end so that you are only allowed to choose recipes from saved).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants