A backend API to support hearty.
- Python 3.8 - recommend installing using pyenv or pyenv-win
- NodeJS - recommend installing using nvm or nvm-windows
- Poetry - recommend installing using their primary instructions
- Docker - used for consistent deployment artifact packaging. Recommend installing Docker for Desktop and may require installing WSL2 on Windows
This project is using Serverless Framework for deployment to AWS.
Serverless is installed as a local NPM package, and therefore should be invoked via npx
It's recommended to use the Makefile
commands instead of interacting directly with the tools.
make build
- performspoetry install
andnpm install
make test
- runs Python testsmake black
- format application and test directories using Blackmake check
- runs Python tests and Black, mypy, flake8, etc.make deploy-all stage={stage}
- deploys all components, making the followingmake deploy*
commands duplicativemake deploy-core stage={stage}
- runsserverless deploy
for the core infrastructure stackmake-deploy-apps stage={stage}
- runsserverless deploy
for the business apps that depend on the core infrastructuremake docs stage={sage}
- generates JSON schema and OpenAPI yml files for public API endpoints
/echo
- simply logs and returns request event. Can be used to test authorization.
A list of things likely related to this development initiating on a Windows 10 machine.
pythonBin
in serverless.yml to getserverless-python-requirements
to work- Editing of
poetry.js
fromserverless-python-requirements
per this GitHub issue