π Description
The Getting Started section of the README (Step 2) tells contributors to run:
But .env.example does not exist in the repository. Any new contributor who follows the README will immediately hit an error:
cp: .env.example: No such file or directory
This is one of the most common friction points for first-time open source contributors and should be fixed immediately.
π File to Create
.env.example at the repository root
β
What To Do
Create a .env.example file with all required keys stubbed out using placeholder values and helpful comments:
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# ποΈ Database (Supabase PostgreSQL)
# Get your connection string from: https://supabase.com/dashboard
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
DATABASE_URL=postgresql://postgres:<password>@<host>:<port>/<db>
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# π GitHub OAuth App Credentials
# Create one at: https://github.com/settings/developers
# Callback URL should be: http://localhost:8080/auth/github/callback
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
# A Personal Access Token for higher GitHub API rate limits
GITHUB_TOKEN=your_personal_github_token
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# π JWT Secret (use a long random string, min 32 characters)
# Generate with: openssl rand -hex 32
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
JWT_SECRET=your_super_secret_jwt_key_min_32_chars
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# π€ AI Provider: "groq" (recommended) or "gemini"
# Groq API: https://console.groq.com/
# Gemini API: https://aistudio.google.com/
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
LLM_PROVIDER=groq
LLM_MODEL=mixtral-8x7b-32768
GROQ_API_KEY=your_groq_api_key
GEMINI_API_KEY=your_gemini_api_key
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# π Frontend (Next.js) β URLs for backend services
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
NEXT_PUBLIC_CORE_SERVICE_URL=http://localhost:8083
NEXT_PUBLIC_GITHUB_SERVICE_URL=http://localhost:8081
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# π Auth Redirect (where GitHub OAuth sends users after login)
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
AUTH_REDIRECT_URL=http://localhost:3000/auth/success
π Acceptance Criteria
π‘ Technical Hints
- Check the existing
.env files inside each service directory for all variables used:
backend/core_service/.env
backend/auth-service/.env (if it exists)
backend/ai-service/.env
frontend/.env.local
- The file must use placeholder values like
your_api_key_here β never use real credentials
.env.example should be tracked by git. Only .env itself should be in .gitignore
π Getting Started
- Fork the repository
- Create a branch:
git checkout -b fix/issue-7-add-env-example
- Create
.env.example at the project root
- Make sure it is NOT listed in
.gitignore
- Open a Pull Request!
π Description
The Getting Started section of the README (Step 2) tells contributors to run:
But
.env.exampledoes not exist in the repository. Any new contributor who follows the README will immediately hit an error:This is one of the most common friction points for first-time open source contributors and should be fixed immediately.
π File to Create
.env.exampleat the repository rootβ What To Do
Create a
.env.examplefile with all required keys stubbed out using placeholder values and helpful comments:π Acceptance Criteria
.env.exampleexists at the repository root.env.exampleis committed to the repo (it does NOT get added to.gitignoreβ it contains no real secrets, only placeholders)π‘ Technical Hints
.envfiles inside each service directory for all variables used:backend/core_service/.envbackend/auth-service/.env(if it exists)backend/ai-service/.envfrontend/.env.localyour_api_key_hereβ never use real credentials.env.exampleshould be tracked by git. Only.envitself should be in.gitignoreπ Getting Started
git checkout -b fix/issue-7-add-env-example.env.exampleat the project root.gitignore