Skip to content

bushrapatel28/photolabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Photolabs

PhotoLabs is a React-based single-page application (SPA) that allows users to view photos in different contexts. We will use a pre-existing API to build a frontend user experience for users to interact with photos!

Setup

Note that two different servers will be running during development:

  1. Client-side Webpack development server and
  2. API server to provide photo data

Install dependencies with npm install in each respective /frontend and /backend.

[Frontend] Running Webpack Development Server

cd frontend
npm start

[Backend] Running Backend Server

Read backend/readme for further setup details.

cd backend
npm start

Features

  • Users can view a list of various photos on the home page along with a list of photo categories to select from in the navigation bar.
  • Users can click on a photo to view a larger version of the photo and relevant / similar photos.
  • They can like any photo(s) and can view a notification on the heart icon in the navigation if there are any liked photos.

Final Product

"Homepage"

"Enlarged Photo and Similar Photos"

"Notification for liked photos"

"Photo Categories"

Components Checklist

  • FavBadge.jsx
  • FavIcon.jsx
  • PhotoFavButton.jsx
  • PhotoList.jsx
  • PhotoListItem.jsx
  • TopicList.jsx
  • TopicListItem.jsx
  • TopNavigationBar.jsx

Routes

  • HomeRoute.jsx:

    • Returns XML which renders the Top Navigation Bar and the Photo List components.
  • PhotoDetailsModal.jsx:

    • Returns XML which renders the Photo Fav Button and the Photo List of similar photos on the Display Modal.

Custom Hooks

  • useApplicationData.js: Uses the useEffect React hook to fetch the data from the API using a fetch request. It also uses the useReducer React hook to set the state of the components as required.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published