Skip to content

Frontend Routes

Michael edited this page Jul 20, 2022 · 3 revisions

/

Home Page

This page displays the home page where users can see all snack listings, a search bar where they can search for their favorite snacks, and a navigation bar that displays a sign in button and a shopping cart icon button. If a user is signed in, the home page will display a welcome message, and the navigation bar will now display an account drop down menu button as well as the shopping cart button.

/cart

Shopping Cart Page

Logged in users will have access to their shopping cart. On this page, users can view all snack items they have added to their cart. An editing quantity option will also be shown next to each item as well as a check out cart button. If a users cart is empty, this page will only display a message that states "Your cart is empty." and a link to continue browsing Snacksy products.

/profile

User Profile Page

Logged in users will have access to their profile page. This page will display the user's account information, their snack listings (if they have any), a button that gives them an option to add a snack listing to sell on Snacksy, and any snack items they have favorited.

/snacks/:snacks_id

Individual Snack Page

Users that are either logged in or logged out will have access to the library of snacks that are featured on the site. On this page, information regarding the details of the specific snacks will be displayed for the user to see. Details include a cover picture, title, description, category, and price. Users will have access to all snack information regardless of user authentication.

/new-snack

Creating a new snack

Registered and logged-in users will have the ability to access the form to add new snacks to our database. When clicking on the link the user will be navigated to a form where they are required to fill out the requested demands in order to create their new desired snack, which all users will have the ability to see and interact with.

Clone this wiki locally