/Health_activity_API

Created a REST API using Flask-SQLAlchemy, Flask-restful, and Flask Migrate.

Primary LanguagePython

Health and activity tracker REST API with Flask:

About the Project

This API was design to to track health and activity/excercises for each user. You can only create users, the update and delete function were removed to moderate data deletion. Each activity log and health log must be assigned with a user.
ERD

**Note this project was created using a .env file, and will need a separate .env to run.

Getting Started

This application is deployed on heroku: Health Activity API. Please view the API documentation to get started API Documentation

Installation to use on local machine:

  1. Pull files from repository.
git clone https://github.com/williamle92/Health_activity_API.git 
  1. Optional: Create a virtual environment using
python -m venv venv
  1. To install all dependencies to project
pip install -r requirements.txt
  1. Create a .env file
  2. Link database url: "postgresql://scott:tiger@localhost/mydatabase", for more information please visit: Flask-SQLAlchemy Configurations
  3. Set up database "flask db init"
  4. migrate "flask db migrate"
  5. Upgrade: "flask db upgrade"