REST API for coordinating employees and available work stations in office buildings. For full API documentation check out our swagger documentation
Set up local python environment:
This service uses python 3.8. If you do not have python 3.8 on your computer we can recommend using pyenv in order to install and use it.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install pip-tools
pip install black
Install node packages and set up build environment:
make init
To install new python packages add it to setup.py => install_requires
then run pip-compile
=> pip install -r requirements.txt
Tests are run using tox
To run test with our python build environment: make test
To run auto format: make format
For tests and linting we use pytest, flake8 and black.
This api uses FastAPI web framework. To run the application locally: uvicorn app.main:app --host 0.0.0.0 --port 8000
This Service uses serverless framework for deploying lambda functions. For ease of use we have contained the serverless deploy command in our makefile. In order to deploy simply run:
make login
make deploy
Our infrastructure is setup using terraform. The terraform code can be found in the subdirectory /terraform