This is a gym website project developed using ReactJS and API functionality to provide users with an intuitive interface to search for and replicate exercises using GIFs. It also allows users to view relevant YouTube videos related to the exercises.
https://www.loom.com/share/1ef6f95976fb41f7a2709b2ecc383d50
The website offers the following features:
- Exercise Search: Users can search for exercises using the provided search bar. The search functionality is powered by one of the APIs integrated into the project.
- Exercise Replication: Users can easily replicate exercises by viewing accompanying GIFs. The GIFs are fetched from another API integrated into the project.
- YouTube Videos: Relevant YouTube videos related to the searched exercises are displayed on the website, allowing users to access additional instructional content.
- Target Muscle and Equipment Information: Users can access detailed information about the target muscle group and equipment required for each exercise. This information is displayed along with the exercise details.
- Similar Exercises: A separate page is dedicated to displaying a list of similar exercises that target the same muscle group and require similar equipment.
The gym website project utilizes the following technologies:
-
ReactJS: The frontend of the website is developed using ReactJS, providing a modern and interactive user interface.
-
APIs: Two APIs are integrated into the project. One API is responsible for fetching exercise data and providing search functionality, while the other API fetches GIFs related to the exercises.
The project has the following structure:
-
src
: This directory contains the source code for the ReactJS application.components
: This directory contains reusable components used throughout the application, such as search bar, exercise card, video player, etc.pages
: This directory contains the main pages of the website, such as the home page, exercise details page, and similar exercises page.services
: This directory contains modules responsible for handling API requests and data fetching.utils
: This directory contains utility functions used across the application.App.js
: The main entry point of the application.index.js
: The file responsible for rendering the ReactJS application.
-
public
: This directory contains static assets, such as the website's favicon and the HTML template used as the base for the application. -
README.md
: The readme file containing information about the project, its structure, and instructions for running the application.
To run the gym website project locally, follow these steps:
-
Clone the project repository from GitHub.
-
Navigate to the project directory.
-
Install the project dependencies by running
npm install
oryarn install
. -
Start the local development server by running
npm start
oryarn start
. -
Open your web browser and access the website at
http://localhost:3000
.
Contributions to the gym website project are welcome! If you find any issues or would like to add new features, please submit a pull request on the project's GitHub repository.
The gym website project is released under the MIT License. You are free to use, modify, and distribute the code as per the terms of this license.