Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

Latest commit

 

History

History
28 lines (16 loc) · 1003 Bytes

README.md

File metadata and controls

28 lines (16 loc) · 1003 Bytes

gjenbruksstasjoner-kotid-api

Lambda function providing an API for gjenbruksstasjoner-kotid-estimering using Flask and Flask-RESTful.

Tests

Tests are run using tox: make test

For tests and linting we use pytest, flake8 and black.

Run

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

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.