An open API service indexing awesome lists of open source software.

https://github.com/autumnchris/exercise-tracker-api

An Express.js API that creates a username and gets a list of exercises for that unique username as well as logs new exercises.
https://github.com/autumnchris/exercise-tracker-api

api css3 ejs ejs-express exercise-tracker exercise-tracker-api exercise-tracker-challenge express expressjs freecodecamp javascript momentjs mongodb mongoose mongoosejs nodejs

Last synced: 3 months ago
JSON representation

An Express.js API that creates a username and gets a list of exercises for that unique username as well as logs new exercises.

Awesome Lists containing this project

README

          

# Exercise Tracker API

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](https://www.freecodecamp.org/learn/apis-and-microservices/apis-and-microservices-projects/exercise-tracker) as part of the curriculum for the [Back End Development and APIs Certification](https://www.freecodecamp.org/learn/back-end-development-and-apis) on [freeCodeCamp](https://www.freecodecamp.org).

---

## Built With
* [Express.js](https://expressjs.com)
* [Node.js](https://nodejs.org/en)
* [Mongoose](https://mongoosejs.com)
* [MongoDB](https://www.mongodb.com)
* [EJS](https://ejs.co)
* HTML5
* CSS3
* JavaScript
* Vanilla JS
* [Moment.js](https://momentjs.com)
* [validator.js](https://github.com/validatorjs/validator.js)
* [dotenv](https://github.com/motdotla/dotenv)
* [Normalize.css](https://necolas.github.io/normalize.css)
* [Google Fonts](https://fonts.google.com)
* [FontAwesome](https://fontawesome.com)
* [nodemon](https://nodemon.io)

## Demo

View project demo at [https://autumnchris-exercise-tracker-api.onrender.com/api](https://autumnchris-exercise-tracker-api.onrender.com/api).

## Instructions

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=
```

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.