An Express.js API that creates a username and gets a list of exercises for that unique username as well as logs new exercises.
Inspired by the Exercise Tracker challenge as part of the curriculum for the Back End Development and APIs Certification on freeCodeCamp.
- Express.js
- Node.js
- Mongoose
- MongoDB
- EJS
- HTML5
- CSS3
- JavaScript
- Vanilla JS
- Moment.js
- validator.js
- dotenv
- Normalize.css
- Google Fonts
- FontAwesome
- nodemon
View project demo at https://autumnchris-exercise-tracker-api.onrender.com/api.
After forking and cloning, navigate to the repository in your command line and install the NPM packages:
npm install
Create a .env
file in the root of the repository and add the following environment variables:
MONGO_URI=<your-mongodb-uri>
Run the following script in your command line if starting the repository in development mode:
npm run dev
Run the following script in your command line if starting the repository in production mode:
npm start
Once the server is running, go to http://localhost:3000
in your browser.