Skip to content

Commit 0581632

Browse files
author
Dathan Vance Pattishall
committed
Enable starting the dev environment without having to configure it. Secrets are not stored
1 parent 5fc8268 commit 0581632

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.env

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copy to .env and fill in values. Never commit .env to git.
2+
3+
# ── Database ──────────────────────────────────────────────────────────────────
4+
DATABASE_HOST=127.0.0.1
5+
DATABASE_PORT=5432
6+
DATABASE_NAME=app_db
7+
DATABASE_USER=app_user
8+
DATABASE_PASSWORD=changeme
9+
10+
# ── Auth ──────────────────────────────────────────────────────────────────────
11+
AUTH_JWT_SECRET=change-me-in-production-use-32-chars-min
12+
13+
# Google OAuth — https://console.cloud.google.com/apis/credentials
14+
AUTH_OAUTH_GOOGLE_CLIENT_ID=
15+
AUTH_OAUTH_GOOGLE_CLIENT_SECRET=
16+
AUTH_OAUTH_GOOGLE_REDIRECT_URL=http://127.0.0.1:8080/auth/google/callback
17+
18+
# GitHub OAuth — https://github.com/settings/developers
19+
AUTH_OAUTH_GITHUB_CLIENT_ID=
20+
AUTH_OAUTH_GITHUB_CLIENT_SECRET=
21+
AUTH_OAUTH_GITHUB_REDIRECT_URL=http://127.0.0.1:8080/auth/github/callback
22+
23+
# Slack OAuth — https://api.slack.com/apps
24+
AUTH_OAUTH_SLACK_CLIENT_ID=
25+
AUTH_OAUTH_SLACK_CLIENT_SECRET=
26+
AUTH_OAUTH_SLACK_REDIRECT_URL=http://127.0.0.1:8080/auth/slack/callback
27+
28+
# LinkedIn OAuth — https://www.linkedin.com/developers/apps
29+
AUTH_OAUTH_LINKEDIN_CLIENT_ID=
30+
AUTH_OAUTH_LINKEDIN_CLIENT_SECRET=
31+
AUTH_OAUTH_LINKEDIN_REDIRECT_URL=http://127.0.0.1:8080/auth/linkedin/callback
32+
33+
# ── Stripe ────────────────────────────────────────────────────────────────────
34+
STRIPE_SECRET_KEY=sk_test_
35+
STRIPE_WEBHOOK_SECRET=whsec_
36+
STRIPE_PUBLISHABLE_KEY=pk_test_
37+
38+
# ── LLM Providers ─────────────────────────────────────────────────────────────
39+
OPENAI_API_KEY=
40+
ANTHROPIC_API_KEY=
41+
GEMINI_API_KEY=

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ dev-start: build
9999
@echo "==> Starting Postgres, Go server + Vite dev server (Ctrl-C to stop all)"
100100
@docker rm -f dev-postgres 2>/dev/null || true
101101
@docker run -d --name dev-postgres \
102+
-e POSTGRES_USER=$${DATABASE_USER:-app_user} \
103+
-e POSTGRES_DB=$${DATABASE_NAME:-app_db} \
102104
-e POSTGRES_HOST_AUTH_METHOD=trust \
103105
-p 5432:5432 \
104106
postgres:latest

frontend/.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VITE_API_URL=http://127.0.0.1:8080
2+
VITE_STRIPE_PUBLISHABLE_KEY=pk_test_

0 commit comments

Comments
 (0)