Performance Platform admin is a Flask app that allows authorised users to update performance data on GOV.UK.
We recommend using virtualenv to manage this application's dependencies.
To set up, run:
pip install -r requirements.txt
Redis is also required to run the application. It is already on the dev vm. If you prefer to install it locally:
brew install redis
To start run redis-server
A good guide to adding redis to launchctl can be found here
- Create a signon application and user
- Update development config with OAuth2 credentials
- Set an environment variable to allow OAuth over insecure TLS in development:
export OAUTHLIB_INSECURE_TRANSPORT=1
- Run the app as normal
If you need to compile stylesheets outside of the normal app starting process then run:
python tools/compile_sass.py
python start.py 3070
Starting the app in development will automatically compile stylesheets.
You can modify your local configuration without affecting version control using
the instructions in the admin/config/development.py
file.
./run_tests.sh