/flask.lawrencemcdaniel.com

Serverless Flask sandbox environment -- Yeah!!!! :)

Primary LanguagePython

flask.lawrencemcdaniel.com

Resources

Zappa setup: https://blog.apcelent.com/deploy-flask-aws-lambda.html Flask: http://flask.pocoo.org/ SQLAlchemy: https://www.sqlalchemy.org/

flask.lawrencemcdaniel.com

Local dev environment setup

  1. AWS Credentials
  2. Install AWS CLI
pip install awscli
  1. Create Virtual Environment
# cd to the local git repository
virtualenv -p python3 env3
source .env3/bin/activate
pip install -r requirements.txt
zappa init
  1. Run Flask web server:
export FLASK_APP=app.py
export FLASK_DEBUG=1
flask run
  1. Deploy app to AWS
zappa deploy dev
  1. Subsequent app updates to aws
zappa update dev