The serverless backend API which assists in computation for EVETrade.space.
It has 3 components:
- The core API which is a bundled and deployed AWS Lambda function
- The data sync service which is a long-running service deployed on Heroku
- The event driven lambdas which are deployed on AWS Lambda and are triggered by events (time or SQS)
- Python 3.9 ** For API and for data sync service
- Poetry
- Environment Variables (see .env.example)
- NodeJS 16.x (for event driven lambdas only) ** Soon to be refactored
- In the future will dockerize the entire API stack to allow for easier local development
Install dependencies:
poetry install --sync
Activate the virtual environment:
poetry shell
Running tests:
pytest
Running tests to include coverage report:
pytest --cov=api --cov-report term-missing --cov-report=xml