Fix: Better error handling for missing Google OAuth credentials

- Add .env.example with required environment variables
- Add helpful warning message when google_client_id/secret are missing
- Update steps_to_run.md with detailed setup instructions
- Include instructions for creating Google OAuth credentials

Addresses #9
This commit is contained in:
Anil Matcha
2026-02-05 23:53:52 +05:30
parent 830b790803
commit b5ab57bc30
3 changed files with 50 additions and 8 deletions

12
server/.env.example Normal file
View File

@@ -0,0 +1,12 @@
# Flask Configuration
FLASK_ENV=dev
FLASK_APP=webserver.py
SECRET_KEY=your-secret-key-here
# Google OAuth Credentials (for user authentication)
# Get these from https://console.cloud.google.com/apis/credentials
google_client_id=your-google-client-id
google_client_secret=your-google-client-secret
# OpenAI API Key (users can also add this in the UI)
# OPENAI_API_KEY=sk-your-openai-api-key