capstone's People
capstone's Issues
Food List
Story
A user should be able to add their favorite food items to their pantry.
Acceptance Criteria
Given a user wants to add a food item to their pantry.
When the user preforms a gesture on the Add Food Item button
Then a form should be presented to the user in which the following information can be entered
1. name
2. quantity
3. quantity type (dropdown)
4. food type (dropdown)
5. calories
6. protein
7. fat
8. carbs
9. sugar
Given a user has entered in all field values for storing a new food item
When the user performs a gesture on the Save Food Item affordance
Then the food should be saved in the database, and assigned to the user
Given a user has saved foods
When the user visits their pantry
Then the foods should be presented in the FoodList component, sorted name in alphabetical order
And each food should have an affordance to delete the food
User Registration
Story
User should be able to fill out a form with her username, email address and password to register herself to the application.
Acceptance Criteria
If a user wants to use the application
When the user first opens the application
Then the user should see a login form and a hyperlink that says register an account.
If user wants to register an account
She can click the register new account hyperlink
Then a registration form should display where she can input email address, username, password and confirm password.
Given a user has filled out all fields of the registration form
When the user clicks the Register button
Then it should check if the email address is unique
And the username is unique
And the password and confirmation password are identical
Then a new account is created
And the user is logged in
Meal Maker Form
Story
A user should be able to make new meals using the food items they have stored in their pantry.
Acceptance Criteria
Given a user wants to make a meal
When the user preforms a gesture on the Add To Meal affordance displayed on the food items
Then the user will be prompted to enter the quantity (integer) of the food item they would like to add to the meal.
Given the user has entered the quantity into the prompt
When the user performs a gesture on the Add Food affordance
The name of the food will populate to the list of foods in the Meal Maker Form with "x(integer user input into the prompt)" appended to it
And the nutrition data will be appended to and displayed in the nutrients list portion of the Meal Maker form.
Given a user wants to change the amount of food item added to the meal
When user preforms a gesture on the "change amount" affordance
Then the user will be re-prompted with the same modal as before to input an integer.
Given the user want to remove a food from the Meal Maker
When the user preforms a geture on the "remove" affordance
Then the food will be removed from the Meal Maker
And the total nutrient calculator will readjust
Given the user has entered in all field values they desire (name, img and description are optional)
When the user preforms a gesture on the Save Meal affordance
Then the meal should be saved to the database and assigned to a user
And should have a property of the current timestamp.
Filter Food by Type
Story
A user should be able to choose a food type which to filter their foods in their pantry
Acceptance Criteria
Given a user wants to filter their foods in their pantry by the food type
When a user preforms a gesture on the food type dropdown and chooses a type
Then the FoodList component in the pantry will filter foods by the type chose by the userc
And display only the foods with that Food Type value
Meals
Story
User should be able to view the meals they make and edit or delete them
Acceptance Criteria
Given a user wants to view the meals they have made
When the user clicks on the Meals affordance
Then the dashboard will change to display the MealsList
Given the user wants to delete a meal
When the user preforms a gesture on the remove affordance on the meals
Then that meal will be removed from the database and from the Meals list
Given the user wants to edit a meal
When the user preforms a gesture on the edit accordance on the meals
Then the Meal Maker Form will be displayed again
And will display the current values
Given a user has made changes and wants to save the new meal,
When the user preforms a gesture on the save meal accordance
Then the meal will be updated in the database and re-rendered in the meals list
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.