Skip to content

yash-sojitra/gym-buddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gym Buddy

Welcome to the Workout Tracker project! This project is a full-stack application built with the MERN (MongoDB, Express.js, React.js, Node.js) stack. It allows users to track their workouts by adding different exercises and monitoring their progress over time.

Project Overview

  • The frontend code is located in the frontend folder.
  • The backend code is located in the backend folder.
  • MongoDB Atlas is used to host the database.

Functionality

  • Users can add different workouts and exercises to their tracker.
  • The application provides a user-friendly interface for logging workouts.
  • State management is handled using React Context API and useReducer hook.
  • MongoDB with Mongoose is used for database integration.

Setup Instructions

  1. Clone the repository:
    git clone https://github.com/your-username/workout-tracker.git
    

Setup Backend:

  1. Navigate to the backend folder:

    cd gymbuddy/backend
    
  2. Install Dependencies:

    npm install
    
  3. Set up environment variables:

    Create a .env file and add your MongoDB connection string. also add PORT variable to the file.

    PORT=4000
    
  4. Run Backend Server for devlopment:

    npm run dev 
    

Setup Frontend:

  1. Navigate to the frontend folder:
    cd ../frontend
    
  2. Install Dependencies:
    npm install
    
  3. Run Frontend for devlopment:
    npm start 
    

Setting up MomgoDB Atlas:

  1. Sign up/Login to MongoDB Atlas: MongoDB Atlas
  2. Create a new cluster and configure your database settings.
  3. Obtain your connection string:
    • Go to your cluster dashboard.
    • Click on "Connect" button.
    • Select "Connect your application".
    • Copy the connection string provided.
  4. Add the connection string to your backend .env file:
    MONGODB_URI=your-connection-string
  5. Ensure your IP address is whitelisted in MongoDB Atlas.
  6. You're ready to use MongoDB Atlas for your project!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published