Skip to content

🏃 A fitness tracker application that is built with MongoDB, Node.js, and Express.js.

License

Notifications You must be signed in to change notification settings

Dragontalker/mongodb-fitness-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fitness Tracker

Javascript Badge MonogoDB Badge ExpressJS Badge Nodejs Badge Boostrap Badge

🚀 Deployed on Heroku

https://dragontalker-fitness-tracker.herokuapp.com/


Table of Contents

Desription

This project builds a workout tracker with Express.js and MongoDB. User can start a workout plan and each plan can track multiple exercises. This application tracks two type of exercises: resistance and cardio. For resistance, the application tracks weight, reps, sets. For cardio exercises, it tracks ditances. After all, the duration of every exercises will be tracked as well. User can see the summary for their current workout plan at the main mage. If user wants more detailed data, he/she can view dashboard for detailed graphs and distributions of exercises performed over the last 7 workout plans.

Back to the Top

🔧 Technologies Used

  • MongoDB
  • Mongoose
  • Express.js
  • Node.js
  • RESTful Api
  • Chart.js
  • Bootstrap 5
  • HTML 5
  • CSS 3
  • JavaScript
  • VS Code
  • Heroku

Back to the Top

How to Use

🔮 This application helps user track different exercises under the same workout plan. Exercises are categoried into two major groups: cardio and resistance. There are four main features: adding cardio, adding resistance, viewing summary of current workoutplan, exploring data dashboard for past 7 workout plans.

🏊 Feature: Adding a New Cardio Exercise

To add a new cardio exercise, user need to enter the name of the exercise, distance in miles and its duration.

cardio screenshot

Back to the Top

💪 Feature: Adding a New Resistance Exercise

To add a new resistance exercise, user need to enter the name of the exercise, weights, setss, reps, and its duration.

cardio screenshot

Back to the Top

💦 Feature: Summary of Current Workout Plan

The summary is automatically generated upon launching or returning to homepage (by clicking on Fitness Tracker on the top left corner).

cardio screenshot

Back to the Top

📊 Feature: Dashboard of Last 7 Workout Plans

By clicking on Dashboard on the top left corner, user will be taken to a dashboard for different statistics for last 7 workout plans.

cardio screenshot

Back to the Top

How to Install

💿 To use this application locally, you need MongoDB community server installed. Type this command in command-line to check:

mongo --version

Once you have MongoDB installed, install the require packages, you will need mongoose to use the seed function, use the following command:

npm install

The last step would be seeding, use this command:

npm run seed

Back to the Top

💻 To initialize the server, type this command in console, then use the application through brower.

npm start

Back to the Top

License

🎓 MIT License

Copyright (c) [2021] [Richard Yang]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Back to the Top

Author Info

👾 Tong (Richard) Yang is a full stack software engineer from Canada, living Toronto Area. If you have any questions, email him at richard.yang.tong@gmail.com or visit his GitHub.

Back to the Top