Skip to content

steviemilitello/check-my-fit-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘• CHECK MY FIT (Client) πŸ‘•


πŸ‘— Description

Check my Fit is an app where you can share your outfits and have them rated. As a user you can view outfits, add your outfits, add tags to your outfits, edit and delete your outfits, view other user's outfits, rate other user's outfits hot or not and add and delete comments on a outfit's page.

βš›οΈ Getting Started

πŸ“² Install Instructions

Installation

  • Fork and Clone this Repo (Client) and The API
  • Follow the instructions on the Check My Fit API Repo to install the API
  • Install the necessary dependencies for this repo by copying the code below (or see dependencies to install individually):
    npm i @fortawesome/fontawesome-svg-core @fortawesome/free-solid-svg-icons @fortawesome/react-fontawesome @testing-library/jest-dom @testing-library/react @testing-library/user-event axios bootstrap dotenv react react-bootstrap react-dom react-moment react-router-dom react-scripts sass uuid web-vitals
  • run npm start for the API (runs on localhost:3000)
  • run npm start for the this repo (The Client) and go to localhost:8000 in your browser to view

Dependencies

πŸ“² How To Use

How to View a Profile

  1. After logging in and being brought to the Fit Feed, click on the top of one of the outfits to view another user's profile
  2. If you wish to view your own profile, click on My Fits in the Navbar

How to Add an Outfit

  1. After logging in, click Add New Outfit in the navbar
  2. Fill in all the fields and click the checkboxes of the tags you wish to add
  3. Click submit to add the new outfit
  4. Your outfit will appear on the Fit Feed page and your Profile page

How to Edit an Outfit

  1. From the Fit Feed, click view on the outfit you wish to edit, if you created it
  2. Once on the outfit page, click the Edit Outfit button in the lower right corner of the outfit
  3. Fill in the fields and uncheck or check the checkboxes you wish to change, and the click submit
  4. The edited details will appear on the outfit's page and on the Fit Feed page

How to Delete an Outfit

  1. From the Fit Feed, click view on the outfit you wish to delete, if you created it
  2. Once on the outfit page, click the Delete Outfit button in the lower right corner of the outfit
  3. The outfit will no longer appear on the Fit Feed page or your Profile page

How to Sort

  1. There are several ways to sort, either from the Fit Feed page, Outfit Page itself, or from the Navbar
  2. From the Fit Feed, click on a tag on one of the outfits to view the sorted page for the given tag
  3. From the Outfit Page, click on a tag on and view the sorted page for the given tag
  4. From the Navbar click Tag Search in the right corner. From there you will get a drop down, where you will be able to click on the tag and see the sorted page for the given tag

How to Rate Outfits Hot or Not

  1. From the Fit Feed, click view on an Outfit
  2. On the Outfit page, click the fire icon for Hot or no symbol for Not, according to how you wish to vote
  3. Under the caption of the outfit, it will display Hot or Not depending on the total number of votes (Hot is defaulted if no votes are made)
  4. The Hot or Not rating is also displayed on the Fit Feed page for each outfit

How to Add a Comment

  1. From the Fit Feed, click view on an Outfit
  2. On the Outfit page, enter your comment at the bottom of the page where it prompts you to do so
  3. Click submit to have your comment appear on the Outfit Page
  4. The comment will appear at the bottom of the page under the Enter your Comment form

How to Delete a Comment

  1. From the Fit Feed, click view on an Outfit
  2. On the Outfit page, if you created a comment, at X will appear on the upper right of the comment
  3. Click the X and the comment will be deleted
  4. The comment will not longer appear on the Outfit page

➑️ Routes

Outfits
Endpoint Component AuthenticatedRoute?
/outfits Index No
/outfits/:outfitId Show Yes
/outfits Create Yes
/outfits/user/:userId Update No
Tags
Endpoint Component AuthenticatedRoute?
/tags/:tagId Index No
/tags/:outfitId Post Yes
Votes
Endpoint Component AuthenticatedRoute?
/vote/:outfitId Post Yes
User
Endpoint Component AuthenticatedRoute?
/sign-up SignUp No
/sign-in SignIn No
/sign-out SignOut Yes
/change-password ChangePassword Yes

πŸ–ΌοΈ Screenshots

🎨 Wireframes
Description Screenshot

Sign In Page

Index Page

Show Page

User Profile Page

βš™οΈ Functionality
Description Screenshot

Sign In Page

Index Page

Show Page

User Profile Page

πŸ‘€ User Story

As a Public User

  • As a public user they want to be able to be view user's outfits
  • They want be able click on user's profiles
  • They want be able click on each individual outfit
  • They want to be able to see the rating on the outfit
  • They want to be able to see comments on an outfit
  • They want to able to sign up if they choose for added functionality

As a Logged in User

  • As a logged in user they want to be able to do all that a public user can do but with added functionality
  • They want to be able to have a profile page with their outfits
  • They want to be able to add their own outfits
  • They want to be able to delete their own outfits
  • They want to be able rate other user's outfits
  • They want to be able to add comments on an outfit
  • They want to be able to delete comments on an outfit

πŸ’» Technologies Used

HTML5 CSS3 Bootstrap FontAwesome JavaScript React NPM Axios ReactRouter

⏩ Next Steps

  • Add Top Outfits aggregated by Hot rating to User's Profile page
  • Expand on the amount of tags available for a user to select
  • Add ability to upload photos via Cloudinary API

About

an app to share your outfits [react]

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published