Lambda function providing an API for gjenbruksstasjoner-kotid-estimering using Flask and Flask-RESTful.
Tests are run using tox: make test
For tests and linting we use pytest, flake8 and black.
make run
to start up Flask app locally. Binds to port 5000
by default. Change port/environment:
export FLASK_ENV=development
export FLASK_RUN_PORT=8080
Deploy to dev is automatic via GitHub Actions, while deploy to prod can be triggered with GitHub Actions via dispatch. You can alternatively deploy from local machine (requires saml2aws
) with: make deploy
or make deploy-prod
.