A generic repository for general API tests with Flask.
- Python 3.12
- PIP 25.1.1
- Clone the repository:
git clone https://github.com/akai-keisanki/myAPIs.git- Start a python virtual environment:
python -m venv .venv
source ./.venv/bin/activate
- Copy the environment variable examples and edit them:
cp .env.example .env
sed -i "s/yoursecretkey/$(python3 -c 'import secrets; print(secrets.token_hex())')/" .env
- Configure the database:
python -m flask db init
python -m flask db migrate
python -m flask db upgrade
- Run
python -m flask run