FastAPI + SQLAlchemy/Alembic + MariaDB backend with Jinja2/htmx/Alpine server-rendered frontend. Multi-user via Google OAuth, daily habit tracking, monthly/weekly history views, Web Push reminders via APScheduler, and PWA support (manifest, service worker, offline caching). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
23 lines
1.1 KiB
Bash
23 lines
1.1 KiB
Bash
# 이 파일을 복사해 .env로 저장한 뒤 값을 채워넣으세요. .env는 git에 커밋되지 않습니다.
|
|
|
|
# 세션 쿠키 서명에 쓰이는 임의의 긴 무작위 문자열 (예: python -c "import secrets; print(secrets.token_hex(32))")
|
|
SECRET_KEY=change-me
|
|
|
|
# 원격 MariaDB 서버 접속 정보
|
|
# 형식: mysql+pymysql://<user>:<password>@<host>:<port>/<database>
|
|
DATABASE_URL=mysql+pymysql://habit_tracker:password@your-db-host:3306/habit_tracker
|
|
|
|
# 구글 로그인용 OAuth 클라이언트 정보.
|
|
# https://console.cloud.google.com/apis/credentials 에서 "OAuth 클라이언트 ID"(웹 애플리케이션)를
|
|
# 만들고, "승인된 리디렉션 URI"에 GOOGLE_REDIRECT_URI와 정확히 같은 값을 등록하세요.
|
|
GOOGLE_CLIENT_ID=
|
|
GOOGLE_CLIENT_SECRET=
|
|
# 로컬 개발: http://localhost:8000/auth/google/callback
|
|
# 배포(Tailscale HTTPS 등): https://<host>.<tailnet>.ts.net/auth/google/callback
|
|
GOOGLE_REDIRECT_URI=http://localhost:8000/auth/google/callback
|
|
|
|
# Web Push용 VAPID 키 (scripts/generate_vapid_keys.py로 생성)
|
|
VAPID_PUBLIC_KEY=
|
|
VAPID_PRIVATE_KEY=
|
|
VAPID_SUBJECT=mailto:you@example.com
|