Skip to content

About

solvis-graphql-api

Resources

Stars

1 star

Watchers

4 watching

Forks

Repository files navigation

solvis-graphql-api

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.

Getting started

Java is required .

nvm current wanting node 22

ensure yarn 2

corepack enable
yarn set version berry
yarn --version

upgrade to yarn

yarn install
yarn npm audit
uv sync --all-groups

Make sure the dynamodb plugin for local tests is installed

yarn sls dynamodb install

Run full stack locally

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

Unit tests

uv run pytest note that some environment variables are set in setup.cfg.

Push a composite solution

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

About

solvis-graphql-api

Resources

Stars

1 star

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages