Zardosh/my-backpack-api

An API for the My Backpack application made with Flask

★ 1Forks 0PythonGitHub ↗Compare

README

MyBackpack API

An API for the My Backpack application made with Flask

Requirements

  • Python 3
  • A MySQL instance

How to run

  1. Create a database named "mybackpack" in the MySQL instance

  2. Clone the repository

git clone https://github.com/Zardosh/my-backpack-api.git

  1. Access the repository

cd my-backpack-api

  1. Create a venv

python -m venv venv

  1. Activate the venv

venv\scripts\activate

  1. Install the required dependencies

pip install -r requirements.txt

  1. Configure the config_example.py file accordingly and rename it to config.py

  2. Create the tables in the database (run each line individually in the console)

python
from app import db
db.create_all()
exit()
  1. Run the API

python run.py

Contributors

Zardosh

Issues