In this project, I created a workout tracker app where a user will be able to track daily workouts. A user can do the following:
- Create and view a daily workout
- Add multiple exercises to the most recent workout plan
- Add new exercises to a new workout plan
- Track the name, type, weight, sets, reps, and duration of an exercise. If the exercise is a cardio exercise, it will track the distance traveled.
- View the combined weight of multiple exercises from the past seven workouts on a statistics page
- View the total duration of each workout from the past seven workouts on a statistics page
This application uses a Mongo database with a Mongoose schema and handles routes with Express.
- Clone this repo.
- Install node.js. It can be downloaded here: node.js Downloads
- Initialize npm:
npm init -y
- Install npm:
npm install
- Install Express npm package:
npm install express
- Install MongoDB.
- Create a workout database in MongoDB.
- Run the /seeders/seed.js file to populate the database.
To run this app:
- Open the console in the directory where the server.js file is located and run the following command:
node server
- Click on Continue Workout to add an exercise to the last workout entered.
- Click on New Workout to start a new workout plan.
- Click on the Dashboard link on the upper left corner of the blue navigation bar to see your workout statistics.
This application is covered under license: MIT License.
If you would like to contribute to this repository, please contact me via the email below to discuss the changes you wish to make.
GitHub Profile: @johannaleal
Email: johannarleal@gmail.com