mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Add govuk-template-flask-skeleton
This commit is contained in:
24
README
Normal file
24
README
Normal file
@@ -0,0 +1,24 @@
|
||||
This Python app creates a frontend skeleton based on Flask, Flask-Assets and the govuk_frontend_toolkit (and GOV.UK template). This renders pages with the GOV.UK style. Webpages can be coded using styles from GOV.UK Elements.
|
||||
|
||||
govuk_frontend_toolkit is pulled in as a git submodule.
|
||||
To get the contents of the submodule run the following git commands.
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
||||
INSTALLATION
|
||||
|
||||
In a virtual environment, install the Python requirements:
|
||||
pip install -r requirements.txt
|
||||
|
||||
You will need sass installed:
|
||||
bundle install
|
||||
|
||||
RUNNING THE APP
|
||||
|
||||
To run the app:
|
||||
python app.py
|
||||
|
||||
Initial URL -
|
||||
http://localhost:5000/helloworld
|
||||
|
||||
(template for this page lives in /templates/hello-world.html, which adds a content block to govuk_template.html)
|
||||
Reference in New Issue
Block a user