Welcome to the Workout Tracker! This application allows users to log, track, and manage their workouts efficiently. Built using the MERN stack (MongoDB, Express.js, React.js, Node.js), it provides a seamless and interactive user experience.
Deployed Link
- Workout Logging: Add, update, and delete workout logs.
- Progress Tracking: Visualize workout progress over time.
- Responsive Design: Works on both desktop and mobile devices.
Make sure you have the following installed on your machine:
-
Clone the repository:
git clone https://github.com/AJ1732/mern_stack.git cd mern_stack
-
Install server dependencies:
cd server npm install
-
Install client dependencies:
cd ../client npm install
-
Set up environment variables:
Create a
.env
file in theserver
directory and add the following variables:PORT=5000 MONGO_URI=your_mongodb_connection_string
-
Run the application:
Start the server:
cd server npm start
Start the client:
cd ../client npm run dev
The application should now be running on your localhost.
- Add Workout: Log a new workout session with details like exercise, reps, and load of weights used.
- Delete Workout: Remove any of your logged workouts.
- GET /api/workouts: Get all workouts for the logged-in user.
- POST /api/workouts: Add a new workout.
- PUT /api/workouts/:id: Update an existing workout.
- DELETE /api/workouts/:id: Delete a workout.
- MongoDB: Database
- Express.js: Backend framework
- React.js: Frontend library
- Node.js: Server environment
- TailwindCSS: For styling
We welcome contributions! Please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch-name
- Make your changes and commit them:
git commit -m 'Add new feature'
- Push to the branch:
git push origin feature-branch-name
- Submit a pull request.
Please ensure your code follows coding standards and includes appropriate tests.
Feel free to reach out if you have any questions or need further assistance. Happy coding! 🚀