GRAPHQL API for analysis of opensha modular Inversion Solutions.
Built with Strawberry GraphQL on FastAPI, deployed with the Serverless framework as an AWS Lambda container (via Mangum).
The API documentation is served by default from the service root.
Java is required .
nvm current wanting node 22
corepack enable
yarn set version berry
yarn --version
yarn install
yarn npm audit
uv sync --all-groups
Make sure the dynamodb plugin for local tests is installed
yarn sls dynamodb install
npx serverless dynamodb start --stage local &\
npx serverless s3 start &\
SLS_OFFLINE=1 uv run uvicorn solvis_graphql_api.app:app --reload
then
AWS_PROFILE=*** SLS_OFFLINE=1 uv run cli WORKING/NSHM_v1.0.4_CompositeSolution.zip NSHM_v1.0.4 -R --ensure_table
uv run pytest note that some environment variables are set in setup.cfg.
AWS_PROFILE=*** REGION=ap-southeast-4 DEPLOYMENT_STAGE=dev S3_BUCKET_NAME=nzshm22-solvis-graphql-api-dev uv run cli WORKING/NSHM_v1.0.4_CompositeSolution.zip NSHM_v1.0.4 -R