A web application that allows a user to continue, create and track daily workouts. In order for users to reach their fitness goals quicker, a user can track and log multiple exercises a day by selecting a type of workout, while listing the details of the workout like name, distance, weight, sets, reps, or duration. View the logged exercises in a neat graph and track daily progress easily.
The application is hosted on a server and stores data on a MongoDB database. Makes use of a few node modules to make the development easier, including: Express, Mongoose, and Morgan. This app makes use of:
- Node.js and Express.js to create RESTful APIs
- MongoDB (noSQL) and Mongoose OMT for the database
- MongoDB aggregate function to dynamtically find the sum of select fields and add feilds
- GET, POST, and PUT routes to communiciate with the database
To install Node.js, follow the documentation Node.js
To install MongoDB, follow the documentation MongoDB
To install necessary dependencies, run the following command:
npm i
Access the webpage by going to the deployed site: Fitness-Tracker.
If you want to run this on a local server, set the path to the Fitness-Tracker folder in the terminal. Run npm seed
to source the seeds folder, if you want preset data. Then run the server.js file by typing npm start
. Go to http://localhost:3000 to acesss the site.
This project is licensed under the terms of the MIT License.
I am the sole author of this repo and I am not currently looking for contributors.
If you have any questions about the repo, open an issue or contact me directly at [email protected]. You can find more of my work at Gaitherdb.