From 6c0b2676cba1e0297c998d5e700973378de7e55b Mon Sep 17 00:00:00 2001 From: voj Date: Tue, 24 Mar 2026 09:48:04 +1300 Subject: [PATCH 1/2] fix documentation for running locally --- README.md | 12 ++++++------ serverless.yml | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ce1cb26..36a93f1 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ poetry lock poetry shell ``` -Make sure the dynamob plugin for local tests is installed +Make sure the dynamodb plugin for local tests is installed ``` yarn sls dynamodb install ``` @@ -41,15 +41,15 @@ yarn sls dynamodb install ### Run full stack locally ``` -# npx serverless dynamodb start --stage local &\ -# npx serverless s3 start &\ +npx serverless dynamodb start --stage local &\ +npx serverless s3 start &\ SLS_OFFLINE=1 poetry run yarn sls wsgi serve ``` then ``` -AWS_PROFILE=*** SLS_OFFLINE=1 poetry run cli WORKING/NSHM_v1.0.4_CompositeSolution.zip NSHM_v1.0.4 -R --ensure_table +AWS_PROFILE=*** SLS_OFFLINE=1 poetry run python .\solvis_graphql_api\scripts\cli.py WORKING/NSHM_v1.0.4_CompositeSolution.zip NSHM_v1.0.4 -R --ensure_table ``` ### Unit tests @@ -60,5 +60,5 @@ AWS_PROFILE=*** SLS_OFFLINE=1 poetry run cli WORKING/NSHM_v1.0.4_CompositeSoluti ### Push a composite solution ``` -AWS_PROFILE=*** REGION=ap-southeast-4 DEPLOYMENT_STAGE=dev S3_BUCKET_NAME=nzshm22-solvis-graphql-api-dev cli WORKING/NSHM_v1.0.4_CompositeSolution.zip NSHM_v1.0.4 -R -``` \ No newline at end of file +AWS_PROFILE=*** REGION=ap-southeast-4 DEPLOYMENT_STAGE=dev S3_BUCKET_NAME=nzshm22-solvis-graphql-api-dev poetry run python .\solvis_graphql_api\scripts\cli.py WORKING/NSHM_v1.0.4_CompositeSolution.zip NSHM_v1.0.4 -R +``` diff --git a/serverless.yml b/serverless.yml index fb11fd2..d361a7e 100644 --- a/serverless.yml +++ b/serverless.yml @@ -9,6 +9,8 @@ configValidationMode: error plugins: - serverless-wsgi - serverless-plugin-warmup + - serverless-dynamodb + - serverless-s3-local package: individually: false From cd145393c6453948588ba5cc6efe83f27daeb4bb Mon Sep 17 00:00:00 2001 From: voj Date: Tue, 24 Mar 2026 09:58:39 +1300 Subject: [PATCH 2/2] fix paths --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 36a93f1..9b291de 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ SLS_OFFLINE=1 poetry run yarn sls wsgi serve then ``` -AWS_PROFILE=*** SLS_OFFLINE=1 poetry run python .\solvis_graphql_api\scripts\cli.py WORKING/NSHM_v1.0.4_CompositeSolution.zip NSHM_v1.0.4 -R --ensure_table +AWS_PROFILE=*** SLS_OFFLINE=1 poetry run python ./solvis_graphql_api/scripts/cli.py WORKING/NSHM_v1.0.4_CompositeSolution.zip NSHM_v1.0.4 -R --ensure_table ``` ### Unit tests @@ -60,5 +60,5 @@ AWS_PROFILE=*** SLS_OFFLINE=1 poetry run python .\solvis_graphql_api\scripts\cli ### Push a composite solution ``` -AWS_PROFILE=*** REGION=ap-southeast-4 DEPLOYMENT_STAGE=dev S3_BUCKET_NAME=nzshm22-solvis-graphql-api-dev poetry run python .\solvis_graphql_api\scripts\cli.py WORKING/NSHM_v1.0.4_CompositeSolution.zip NSHM_v1.0.4 -R +AWS_PROFILE=*** REGION=ap-southeast-4 DEPLOYMENT_STAGE=dev S3_BUCKET_NAME=nzshm22-solvis-graphql-api-dev poetry run python ./solvis_graphql_api/scripts/cli.py WORKING/NSHM_v1.0.4_CompositeSolution.zip NSHM_v1.0.4 -R ```