Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

wegotpop/zappa-demo-project

Repository files navigation

POP Zappa demo

Build and deploy your own Zappa AWS Lambda web service

Requirements

  • Python 3.6.1

Virtualenv setup

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install -r dev_requirements.txt

## Test the application

Run: `python app/app.py`

The visit http://localhost:5000

You should see a JSON document that reads "Hello world!"

## Deploy the application

Edit the `zappa_settings.yaml` file can change the project name (I would suggest changing POP to your POP username).

Run: `zappa deploy dev`

Zappa will now create some resources on AWS. It will then spit out a link to your new application. Put the link in the browser to see your internet-deployed application!

## Modifying the application

Add a new key-value to the payload dictionary in the application.

Update the deployment: `zappa update dev`

Reload the URL, your change should be visible

## Cleaning up the application

Run: `zappa undeploy dev`

This will remove the AWS resources from the PreProduction account. Don't leave things lying around!

About

Demonstration on how to create a simple Zappa project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages