# Unit 17 Nosql Homework: Workout Tracker For this assignment, you'll create a workout tracker. You have already been provided with the front end code in the `Develop` folder. This assignment will require you to create Mongo database with a Mongoose schema and handle routes with Express. ## User Story * As a user, I want to be able to view create and track daily workouts. I want to be able to log multiple exercises in a workout on a given day. I should also be able to track the name, type, weight, sets, reps, and duration of exercise. If the exercise is a cardio exercise, I should be able to track my distance traveled. ## Business Context A consumer will reach their fitness goals more quickly when they track their workout progress. ## Acceptance Criteria When the user loads the page, they should be given the option to create a new workout or continue with their last workout. The user should be able to: * Add exercises to a previous workout plan. * Add new exercises to a new workout plan. * View the combined weight of multiple exercises on the `stats` page. To deploy an application with a MongoDB database to Heroku, you'll need to set up a MongoDB Atlas account and connect a database from there to your application. Be sure to use the following guides for support: * [Set Up MongoDB Atlas](../04-Supplemental/MongoAtlas-Setup.md) * [Deploy with Heroku and MongoDB Atlas](../04-Supplemental/MongoAtlas-Deploy.md) ## Commit Early and Often One of the most important skills to master as a web developer is version control. Building the habit of committing via Git is important for the following two reasons: 1. Your commit history is a signal to employers that you are actively working on projects and learning new skills. 2. Your commit history allows you to revert your codebase in the event that you need to return to a previous state. Follow these guidelines for committing: * Make single-purpose commits for related changes to ensure a clean, manageable history. If you are fixing two issues, make two commits. * Write descriptive, meaningful commit messages so that you and anyone else looking at your repository can easily understand its history. * Don't commit half-done work, for the sake of your collaborators (and your future self!). * Test your application before you commit to ensure functionality at every step in the development process. We want you to have well over 200 commits by graduation, so commit early and often! ## Submission on BCS You are required to submit the following: * The URL to the deployed application * The URL to the GitHub repository
Stars
1
Forks
0
Watchers
1
Open Issues
0
Overall repository health assessment
^1.19.0^4.16.3^5.10.7^1.9.1^0.12.729
commits
I pulled the license and code of conduct information from GitHub. I also edited the readme.md to better match the other read me files that I have created.
9f2b430View on GitHubI formatted the files and did a last test. The code works as of now.
db440c5View on GitHubAdded the push mongoose method to the route. My array is now pushing.
91f13b1View on GitHubThis is what I have with the local host as the uri and not the atlas info. I cannot get the collections to populate in the table of either.
f677dc4View on GitHubI ammended the routes for the stats page so the graphs shownand added the range page.
f98a894View on GitHubI included the virtuals on the schema in the workout.js file. This gives the ability to manipulate the data that we want everytime we make a get request.
cb55882View on GitHubModularized by creating routes dir and html and api .js files. I then added the dot dot slash to the beginning of the file paths in the send files.
162486fView on GitHubdealt with the req in the api routes in the express server in the server.js file.
b355428View on GitHubI ammended the api slash workouts route to send back json after finding all workouts and removing the version and then sending the json back.
640c6a0View on GitHubI ammended the routes to all have a res. something so that they send a response and I stop getting errors regarding that.
2c519d6View on GitHubI added comments in the server.js file to prep for group work and I wanted to push prior to the group work as well.
7b45ed6View on GitHub