GRAPHQL API for analysis of opensha modular Inversion Solutions.
Using Flask with Serverless framework to operate as a AWS Lambda API.
The API documentation is served by default from the service root.
poetry install
npm install --save serverless
npm install --save serverless-python-requirements
npm install --save serverless-wsgi
npm install --save serverless-plugin-warmup
sls wsgi serve
SLS_OFFLINE=1 npx serverless wsgi serve
poetry run pytest
note that some environment variables are set in setup.cfg
.