Skip to content

About

Browser-only Streamlit + Google Sheets template — three progressive steps from mock data to a gated admin dashboard. Deploys to Streamlit Community Cloud; no local install required.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

streamlit-sheets-template

A browser-only template for building a small web app with Streamlit and a Google Sheet as the backing store. Designed for learners who know a little Python and pandas but have never installed Python locally, used git/GitHub, or deployed a web app.

You build the app in three progressive steps. Each step deploys to Streamlit Community Cloud as its own URL. No local Python install, no pip, no terminal — you edit code in your browser (on github.com or via github.dev) and every commit auto-redeploys.

The three steps

Step Folder What you learn
1 step1-mock/ Streamlit basics: widgets, forms, st.dataframe, your first st.bar_chart. Data is hardcoded — no external service.
2 step2-read-public-sheet/ Read a public Google Sheet as CSV with pandas.read_csv. Build a dashboard: KPIs (st.metric), bar chart, line chart, filters.
3 step3-write-admin-gated/ Optional / self-study. Two apps. A public collector writes to a private sheet via a service account; a password-gated admin app views, edits, and visualises the data. The heaviest step — service-account plumbing. Do it on your own time if you want it.

Each step folder is self-contained — you can deploy step 1, then come back later and deploy steps 2 and 3 without touching the earlier apps.

Fun extras

Two browser-only apps for the last session — pure fun, but each teaches a real idea:

Folder What you learn
fun/game-tictactoe/ Object-oriented programming: a Board class bundling state + behaviour, kept alive across reruns in st.session_state.
fun/cv-face/ Computer vision: a webcam snapshot via st.camera_input, face detection with OpenCV. An image is just numbers; a model is a file of learned patterns.
fun/cv-live/ The same detector on live video via streamlit-webrtc. The wow finale — but needs an open network (or a TURN relay); falls back to cv-face if the room's wifi blocks WebRTC.

See docs/05-fun-cv-and-games.md. The webcam is just a browser permission — nothing installs on the PC you're using.

Where to start

  1. Fork this repo — click Fork at the top right. Your fork is the copy Streamlit Cloud will deploy from.
  2. Skim docs/00-git-github-basics.md for the absolute minimum git/GitHub vocabulary.
  3. Follow docs/01-streamlit-cloud-deploy.md to deploy step1-mock/app.py.
  4. Move on to steps 2 and 3 as you're ready.

Docs

What you need

  • A GitHub account (free)
  • A Google account (free)
  • A Streamlit Community Cloud account (free, sign in with GitHub at share.streamlit.io)

Nothing installs on your machine.

What's in the box

.
├── README.md                            # you are here
├── requirements.txt                     # Python libraries Streamlit Cloud installs for you
├── .gitignore
├── .streamlit/
│   └── secrets.toml.example             # the shape of secrets you paste into Streamlit Cloud (step 3)
├── step1-mock/
│   └── app.py
├── step2-read-public-sheet/
│   └── app.py
├── step3-write-admin-gated/
│   ├── collect/app.py
│   └── admin/app.py
├── fun/                                 # last-session extras (session 6)
│   ├── game-tictactoe/app.py            # OOP: a Board class
│   ├── cv-face/app.py                   # computer vision: webcam snapshot
│   └── cv-live/app.py                   # computer vision: live WebRTC tracking
└── docs/
    ├── 00-git-github-basics.md
    ├── 01-streamlit-cloud-deploy.md
    ├── 02-publish-sheet-to-web.md
    ├── 03-service-account-setup.md
    ├── 04-adapt-to-your-niche.md
    └── 05-fun-cv-and-games.md

About

Browser-only Streamlit + Google Sheets template — three progressive steps from mock data to a gated admin dashboard. Deploys to Streamlit Community Cloud; no local install required.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages