No description, website, or topics provided.
Python HTML JavaScript CSS Shell Dockerfile
Clone or download
tbille Merge pull request #1002 from Lukewh/brandstore-details
Hide public metrics on brand stores
Latest commit 17564e2 Aug 13, 2018

This is the new Flask application that will gradually replace the website at, starting with the snap details page.

Local development

The simplest way to run the site locally is to first install Docker (on Linux you may need to add your user to the docker group), and then use the ./run script:


Once the containers are setup, you can visit in your browser.

Use staging APIs

To use staging APIs locally you can add the following lines to an .env.local file:


Using Sentry error tracker

For development purposes, visit, signup and setup a project. By then you will have a sentry DSN string like:


Create or update you .env.local file:


The application will be reporting errors to your project from now on.

Building CSS

For working on Sass files, you may want to dynamically watch for changes to rebuild the CSS whenever something changes.

To setup the watcher, open a new terminal window and run:

./run watch


./run test

Status checks and prometheus metrics

Talisker provides a bunch of useful status checks and metrics about the running application. Some of this information is sensitive and so to access it you need to run the site with your IP address mentioned in the TALISKER_NETWORKS variable:


Now visit to see the endpoints provided by Talisker. Useful ones include:

Brand stores

To create a brand store, create a file with the name of the store in the folder webapp/configs. Then run the project with the environment variable WEBAPP set with the name of the store.


Let's create the brand store storePlus. First create the file webapp/configs/

# webapp/configs/

    'LAYOUT': '_layout-brandstore.html', # custom layout for brandstores
    'STORE_NAME': 'Store Plus',         # Store name displayed in the header
    'STORE_QUERY': 'storePlus',              # Store to query to the snap store

Then run the project with this command, make sure the WEBAPP has the same name as the brand config file:

./run --env WEBAPP=storePlus