User Stories - meagan13/Family-Supper GitHub Wiki
Sign-Up
As an unregistered and unauthorized user, I want to be able to sign up for the website via a sign-up form.
Acceptance Criteria:
- A sign-up button appears in the upper right-hand corner of the navigation bar (only when not yet logged in)
- When I click on the sign-up button, I am redirected to a form where I can create an account
- After creating an account I am automatically logged in and redirected to the home page
- After I am logged in, my username and a logout button will appear in the navigation bar; the sign-up button will no longer be visible
Sign-In
As a registered user, I want to be able to enter my username and password and then have access to create, edit, or delete my recipes and memories.
Acceptance Criteria:
- A sign-in button appears in the upper right-hand corner of the navigation bar (only when not yet logged in)
- When I click on the sign-in button I am prompted to enter my username and password
- If my credentials are incorrect, I will be prompted to try again
- If my credentials are correct, I will be redirected to the home page and will be able to see the forms where I can create, edit, or delete recipes or memories
Demo User
As a demo user, I would like to be able to click a button and be automatically logged in, without having to first create an account.
Acceptance Criteria:
- A Demo button will appear in the upper right-hand corner of the navigation bar (only when not yet logged in)
- When I click on the Demo button I am redirected to the home page and I will be able to see the forms where I can create, edit, or delete recipes or memories
Recipes
As a logged-out user, I want to be able to see all recipes shared on the website.
Acceptance Criteria:
- I will be able to scroll through all recipes on the homepage.
- I will also be able to click the “Categories” link in the navigation bar to view recipes by category.
- If I click on a recipe, I will be redirected to a page dedicated exclusively to that recipe and any memories that have been posted on it.
- I will only be able to view/read the recipe and memories - I will not be able to create, edit, or delete them.
As a logged-in user, I want to be able to create, read, update/edit, or delete a recipe that I have posted.
Acceptance Criteria:
- I will be able to scroll through all recipes on the homepage.
- When I click on the “Create a Recipe” link in the navigation bar I am redirected to a form where I can submit a new recipe.
- After I submit my recipe, I will be redirected to the home page, where my recently-submitted recipe should appear.
- If I want to edit or delete my recipe, I will click on the recipe from either the home page or my profile page and click edit or delete.
- I will not be able to edit or delete recipes that I myself have not created.
Memories
As a logged-out user, I want to be able to see all memories shared on the website.
Acceptance Criteria:
- When I click on a recipe I will be able to see that recipe and any memories that have been added to it.
- I will only be able to view/read the memories associated with that recipe - I will not be able to create, edit, or delete them.
As a logged-in user, I want to be able to create, read, update/edit, or delete a memory that I have posted.
Acceptance Criteria:
- Memories will be associated with recipes
- When I click on a recipe from either the home page or my profile, I will be able to click a button to edit or delete memories that I have created
- I will not be able to edit or delete memories that I myself have not created
Profile
As a logged-in user, I want to be able to see my user information and the recipes and memories that I have posted across the site in one convenient location.
Acceptance Criteria:
- After I have logged in, I will see a link to my profile in the navigation bar
- When I click on that link, I will be directed to a page that displays my profile image, username, bio, and all of the recipe that I have posted
- If I click on a recipe listed in my profile I will be redirected to the associated recipe's page