API service for management Football Clubs written on Flask REST API. With functionality managing teams and players. Features:
- JWT authenticated
- Documentation is located via /swagger-ui/
- Implementing 4 models with many-to-many and many-to-one relationships
- Creating and updating teams and players of the club
- Fork the project into your GitHub
- Clone it into your desktop
git clone https://github.com/TOR968/flaskAPI.git
cd flaskAPI
- Set up virtual environment
python3 -m venv venv
source venv/bin/activate # for Unix-based system
venv\Scripts\activate # for Windows
- Install requirements
pip install -r requirements.txt
- Open .env.sample and change environment variables on yours! Rename the file from .env.sample to .env
flask migrate
flask run
- Create a user via /register/
- Get access token via /login/
- Install ModHeader browser extension and create a Request header with the value Authorization Bearer
<Your access token>