Skip to content

Nickjw243/Unhinged

Repository files navigation

Unhinged

Description

Unhinged is an app where a user can log different sandwiches from any restaurant to keep a record of their favorite sandwiches or to see what they have tried and may venture out to try something new!

Getting started

To run this program after cloning, first, cd into the client directory and run the command "npm start" in the terminal. This will start the client. Next, open a new terminal and run the below commands:

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

This will start the seed file and the database for the backend.

You can use the default "[email protected]" as the email address and password "123" to begin or create your own using the "Sign Up Here" button. Once you are logged in, there are only a couple sandwiches and restaurants in the program so far but type any letter and something should drop down for you to find!

Enjoy!

Wireframe

Screenshot 2024-01-30 at 9 26 36 AM Screenshot 2024-01-30 at 9 27 06 AM Screenshot 2024-01-30 at 9 27 24 AM Screenshot 2024-01-30 at 9 27 41 AM Screenshot 2024-01-30 at 9 27 54 AM

User Stories

  • A user will create an account
  • The user will login to their account
  • The user will search for either the sandwich they are eating or if they log it later, they can search by the restaurant
  • The user finds the profile of the sandwich they just ate and can check it in and it will log to their account

React tree diagram

Screenshot 2024-01-29 at 9 29 26 PM

Schema

Screenshot 2024-01-29 at 9 19 59 PM

API Routes

  • CREATE -> /signup -> POST == Creates a new user account
  • READ -> /sandwiches/:id -> GET == Returns a list of sandwiches that you searched for
  • UPDATE -> /sandwiches/:id -> PATCH == Updates your profile with the sandwich you just checked in
  • DELETE -> /profile -> DELETE == Delete a sandwich from your list
  • READ -> /restaurants/:id -> GET == Returns a list of restaurants when searching for sandwich
  • READ -> /profile -> GET == Returns user profile and the sandwiches they have logged

New Technologies

useContext will be a new technology that will be used in this project

Stretch Goals

  • Add a map feature
  • Create a rating system to show the sandwich's average rating
  • Add more restaurants in other locations

Trello

Screenshot 2024-01-30 at 9 55 01 AM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published