- Pre-requisites -- git, docker
- Clone repo
git clone git@github.com:shaktis/brighton.git cd brighton - Create a
.envfile with feed URL. You can use the existing .env.example for getting started.cp .env.example .env
- Build and launch the app and tail logs
docker compose build && docker compose up -d && docker logs -f --tail 10 brighton-app-1
- The application logs will display store counts by state as well as create a static HTML file as required by the tech challenge. See screenshots below.

- Navigate to http://127.0.0.1:5000 in your browser to view the home page as shown in the image below. The first link goes to the static HTML file created at server start and the second link will re-download and recreate the static HTML file

A python/flask backend with an entry point located in manage.py Line 3.
Lines 29-32 in app.py display the store counts by state and create the static HTML file.
StoreService in services.py is a service façade for the backend operations required to complete the task.
brighton/templates/stores.html contains the required HTML and CSS for the front-end. It is defined as a Jinja2 template, the templating system used by the flask framework.
The recommended database definition for storing data returned by the feed is provided in sql/ddl.sql
Docker related files are docker-compose.yml and DockerFile and Kubernetes related config is provided in k8s/deployment.yml