From bd07808380bf6a79cf88df71c408324eac19cba5 Mon Sep 17 00:00:00 2001 From: Simon Prosen <38320875+simpros@users.noreply.github.com> Date: Tue, 17 Mar 2026 11:43:47 +0100 Subject: [PATCH] feat: add example environment configuration and update .gitignore to include it --- .env.example | 28 ++++++++++++++++++++++++++++ .gitignore | 1 + jean.json | 7 +++++++ 3 files changed, 36 insertions(+) create mode 100644 .env.example create mode 100644 jean.json diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..5dc394d --- /dev/null +++ b/.env.example @@ -0,0 +1,28 @@ +# Database +DATABASE_URL=postgresql://postgres:postgres@localhost:5432/leader + +# Auth Secret +BETTER_AUTH_SECRET=replace-me-with-a-long-random-secret +BETTER_AUTH_BASE_URL=http://localhost:5173 + +# API Keys +GOOGLE_PLACES_API_KEY=replace-me +BRAVE_API_KEY=optional +OPENROUTER_API_KEY=optional +OPENROUTER_MODEL=openai/gpt-4o-mini + +# Email (SMTP) +SMTP_HOST=localhost +SMTP_PORT=1025 +SMTP_USER= +SMTP_PASS= +EMAIL_FROM=noreply@example.com + +# Telemetry (set to false to disable remote log reporting) +LEADER_TELEMETRY=true + +# Bootstrap (first-run only — customize initial admin user and organization) +BOOTSTRAP_USER_NAME=Admin +BOOTSTRAP_USER_EMAIL=admin@leader.local +BOOTSTRAP_ORGANIZATION_NAME=Leader +BOOTSTRAP_ORGANIZATION_SLUG=leader diff --git a/.gitignore b/.gitignore index 5d795fc..91e4ee8 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ build/ dist/ .env .env.* +!.env.example **/*.db **/*.sqlite **/*.sqlite3 diff --git a/jean.json b/jean.json new file mode 100644 index 0000000..7d45c59 --- /dev/null +++ b/jean.json @@ -0,0 +1,7 @@ +{ + "scripts": { + "setup": "bun install", + "teardown": null, + "run": "bun dev" + } +}