Skip to content

Commit 43242a5

Browse files
committed
chore: add environment configuration and security templates
- .env.example: Template with clear API key instructions * OpenAI, Pinecone, Supabase configuration * Redis connection settings * Backend/Frontend URLs * Inline documentation for each variable - .gitignore: Comprehensive ignore patterns * Python artifacts (__pycache__, venv, .env) * Node.js artifacts (node_modules, dist) * IDE configurations (.vscode, .idea) * OS files (.DS_Store) * Cloned repositories (backend/repos/) * Build outputs and coverage reports Security: Prevents accidental commit of API keys and sensitive data
1 parent 749bac4 commit 43242a5

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

.env.example

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# CodeIntel Environment Variables
2+
# Copy this to .env and fill in your actual values
3+
4+
# OpenAI API (Required)
5+
# Get from: https://platform.openai.com/api-keys
6+
OPENAI_API_KEY=sk-...
7+
8+
# Pinecone API (Required)
9+
# Get from: https://app.pinecone.io/
10+
PINECONE_API_KEY=pcsk_...
11+
PINECONE_INDEX_NAME=codeintel
12+
13+
# Supabase (Required)
14+
# Get from: https://app.supabase.com/project/_/settings/api
15+
SUPABASE_URL=https://your-project.supabase.co
16+
SUPABASE_KEY=eyJ...
17+
18+
# Backend API
19+
API_KEY=change-this-secret-key-for-production
20+
BACKEND_API_URL=http://backend:8000
21+
22+
# Redis (auto-configured in Docker, set REDIS_URL in Railway)
23+
REDIS_HOST=redis
24+
REDIS_PORT=6379

.gitignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Python
2+
__pycache__/
3+
*.pyc
4+
venv/
5+
env/
6+
7+
# Node
8+
node_modules/
9+
dist/
10+
11+
# Environment
12+
.env
13+
.env.local
14+
backend/.env
15+
backend/.env.local
16+
mcp-server/.env
17+
mcp-server/.env.local
18+
19+
# IDE
20+
.vscode/
21+
.idea/
22+
*.swp
23+
24+
# OS
25+
.DS_Store
26+
27+
# Cloned repos
28+
backend/repos/
29+
!backend/repos/.gitkeep
30+
31+
# MCP Server
32+
mcp-server/__pycache__/

0 commit comments

Comments
 (0)