From 61fe89f2671c85816b012491a3c89f5421f16d23 Mon Sep 17 00:00:00 2001 From: BadoniShreyansh Date: Thu, 30 Apr 2026 11:37:19 +0530 Subject: [PATCH 1/2] examples/: add a README explaining what's there --- examples/README.md | 51 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 examples/README.md diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 0000000..e57f82a --- /dev/null +++ b/examples/README.md @@ -0,0 +1,51 @@ +# Examples + +Runnable scripts that show one feature each. They import townsquare modules directly — no HTTP calls, no Docker exec. Think of them as reference implementations for specific workflows. + +## Available scripts + +| Script | What it does | +| --------------------------------------- | ------------ | +| _(empty — first contributor adds here)_ | | + + + +## How to run + +First: get townsquare running. The full setup is in [docs/SELF_HOSTING.md](../docs/SELF_HOSTING.md). Quick version: + +```bash +git clone https://github.com/townsquare-os/townsquare +cd townsquare +cp example.env .env +make gen-secrets # paste into .env +# fill GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, WORKSPACE_DOMAIN, ANTHROPIC_API_KEY +make up +``` + +Install Python dependencies locally (examples need them): + +```bash +python -m venv .venv +source .venv/bin/activate +pip install -e ".[google,all]" +``` + +Run any example: + +```bash +source .venv/bin/activate +python examples/