An API for the My Backpack application made with Flask
- Python 3
- A MySQL instance
-
Create a database named "mybackpack" in the MySQL instance
-
Clone the repository
git clone https://github.com/Zardosh/my-backpack-api.git
- Access the repository
cd my-backpack-api
- Create a venv
python -m venv venv
- Activate the venv
venv\scripts\activate
- Install the required dependencies
pip install -r requirements.txt
-
Configure the
config_example.pyfile accordingly and rename it toconfig.py -
Create the tables in the database (run each line individually in the console)
python
from app import db
db.create_all()
exit()
- Run the API
python run.py