Meant to parallel the node version of this lab, using Python and Flask.
Application is within the end
directory; end-back
is currently just working files and can be ignored.
- Open Cloud Shell
- Clone this repo
- Change directories into the
end
directory - Run the setup bash file and the run_server python file
. ./prepare_web_environment.sh
python run_server.py
- Open 2nd tab in Cloud Shell
- Run the worker using
run_worker.sh
- App files live within
quiz
directory - App is logically broken into pieces
api
contains api routes/logicconsole
contains worker logicgcp
contains gcp helper moduleswebapp
contains web app routes/logic
- Within
webapp
...templates
contains web views, excluding clientstatic
contains static files, including client
- App is run from
end
using run_server.py - The
api
andwebapp
modules use Flask blueprints. This allows for module-local routes files to create handlers. - The
gcp
directory houses gcp heloper modules used by theapi
,worker
, andwebapp
modules.
- List API method doesn't do paging