Skip to content

christianfosli/bike-count

Repository files navigation

Bike Count

cicd infra

Visualize data from bike counters in stavanger kommune

A pet project I made to play with Python and Streamlit

See it live at sykkelteller.christianfosli.com

Development

# Set up environment
python -m venv .venv
source .venv/bin/activate # or one of the equivalent script if you prefer powershell / windows
pip install -r requirements-test.txt

# Open project folder in your favorite editor!

Run locally with python / streamlit

First setup environment following the above instructions, then:

streamlit run bike_count.py

Run locally with docker-compose 🐳

docker compose up -d

Or if you're using a recent version of compose you can run with hot-reload support using

docker compose watch

Infra

The webapp is built as a docker image and run using Azure Container Apps. The required infrastructure to do this is declared in Bicep, in the infra folder.