This repository is an extension to the excellent "The Ultimate Flask Front-End", which is about several years old, and broken in a few places. This repository addresses those breakages. This repository also provides minimal instructions to deploy the app to AWS Lambda.
pip install -r requirements.txt
bower install
npm install
To test locally, run the following commands in two different tabs, and visit http://localhost:5000:
gulp
sh ./launch_server.sh
-
Create a
build/
directory at the top level -
Copy
project/app.py
intobuild/
-
Copy
project/static/scripts/js
,project/static/css
andproject/templates
recursively intobuild/
-
Deploy either using:
4.1.
zappa
(read the instructions carefully and deploy to exactly 1 region). One thing to note is you don't explicitly need to create a Lambda handler; zappa will do it for you.:zappa init zappa deploy
4.2. Alternately,
- create a Lambda handler function in
build/app.py
- create a CloudFormation stack by packaging the
build/
directory and deploying it to a Lambda function.
- create a Lambda handler function in