- Language: Python 3.7
- Package manager: pip
- Main dependencies: Flask 1.1.1, Flask-RESTPus
- Tests: unittests
cd hummingbird-v2
virtualenv venv
source venv/bin/activate
pip install -r src/requirements.txt
pip install -r requirements_local.txt
export PYTHONPATH=$PYTHONPATH:$(pwd)/src
export FLASK_ENV=development
export PYTHONPATH=$PYTHONPATH:$(pwd)/src
export FLASK_ENV=development
python src/main.py
docker-compose up --build
http://127.0.0.1:5000/data_api/v1/
- Local
export FLASK_APP=src/main.py
export FLASK_ENV=development
flask db init --directory=local_migrations
flask db migrate --directory=local_migrations
flask db upgrade --directory=local_migrations
export PYTHONPATH=$PYTHONPATH:$(pwd)/src
export FLASK_ENV=testing
python tests/runner.py
flake8 src