Demonstrates generated functions and a router to invoke actions in AWS.
pip install -r requirements-dev.txt
python -m main
In a browser, navigate to http://localhost:8000/
. You should see the index page for your project.
This assumes you already have NodeJs and npm installed (I used npm version 8.15.0), and that you
already have an AWS accounts set up with suitable permissions, with credentials specified in
$HOME/.aws/credentials
or in your environment.
dotenv run -- python -m servey
This will generate a serverless.yml for you if you don't already have one, and
create and inject various resources from /serverless_servey
into it.
npm install serverless
npm install serverless-python-requirements
npm install serverless-prune-plugin
npm install serverless-appsync-plugin
sls deploy
This process typically takes a few minutes. Since this project does not define any Route53 or Cloudfront resources, your API will only have the standard amazon URLs for access.