Skip to content

Commit ed5d280

Browse files
authored
Merge pull request #159 from yashdev9274/supercode-cli
feat(devx): set up repo for OSS contributors
2 parents 4059385 + 77963e3 commit ed5d280

11 files changed

Lines changed: 324 additions & 548 deletions

File tree

.bun-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.2.21

.env.example

Lines changed: 9 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,12 @@
1-
# ===========================================
1+
# ──────────────────────────────────────────────
22
# Supercode Environment Variables
3-
# ===========================================
4-
# Copy this file to .env and fill in your values
5-
# cp .env.example .env
6-
7-
# ===========================================
8-
# Database Configuration
9-
# ===========================================
10-
11-
# PostgreSQL connection string
12-
# Local Docker: postgresql://postgres:postgres@localhost:5432/postgres
13-
# Remote: postgresql://user:password@host:5432/dbname?sslmode=require
14-
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres"
15-
DATABASE_URL_TERMINAL="postgresql://postgres:postgres@localhost:5432/postgres"
16-
17-
# ===========================================
18-
# Authentication (Better Auth)
19-
# ===========================================
20-
21-
# Secret key for session encryption (generate with: openssl rand -base64 32)
22-
BETTER_AUTH_SECRET="your-secret-key-here"
23-
24-
# Base URL of your application
25-
# Development: http://localhost:3000
26-
# Production: https://yourdomain.com
27-
BETTER_AUTH_URL="http://localhost:3000"
28-
29-
# Alternative auth URL (optional, used in some configurations)
30-
NEXT_PUBLIC_BETTER_AUTH_URL="http://localhost:3000"
31-
32-
# ===========================================
33-
# GitHub OAuth
34-
# ===========================================
35-
# Create OAuth app at: https://github.com/settings/developers
36-
37-
# GitHub OAuth App Client ID
38-
GITHUB_CLIENT_ID="your-github-client-id"
39-
40-
# GitHub OAuth App Client Secret
41-
GITHUB_CLIENT_SECRET="your-github-client-secret"
42-
43-
# ===========================================
44-
# Application URLs
45-
# ===========================================
46-
47-
# Public base URL for the application
48-
# Used for generating absolute URLs and OAuth callbacks
49-
# Development: http://localhost:3000
50-
# Production: https://yourdomain.com
51-
# With ngrok: https://your-subdomain.ngrok-free.app
52-
NEXT_PUBLIC_APP_BASE_URL="http://localhost:3000"
53-
54-
# ===========================================
55-
# AI Services (Optional)
56-
# ===========================================
57-
58-
# Google Gemini API Key
59-
# Get your key at: https://aistudio.google.com/app/apikey
60-
# Used for AI embeddings and text generation
61-
GOOGLE_GEMINI_API_KEY="your-google-gemini-api-key"
62-
63-
# Pinecone Vector Database
64-
# Get your key at: https://app.pinecone.io/
65-
# Used for vector storage and semantic search
66-
PINECONE_DB_API_KEY="your-pinecone-api-key"
67-
68-
# Hugging Face API Token (optional)
69-
# Get your token at: https://huggingface.co/settings/tokens
70-
HUGGING_FACE_TOKEN="your-huggingface-token"
71-
72-
# Tinker API Key (optional)
73-
TINKER_API_KEY="your-tinker-api-key"
74-
75-
# ===========================================
76-
# Vercel Deployment (Optional)
77-
# ===========================================
78-
79-
# Vercel OIDC Token (auto-generated by Vercel CLI)
80-
# VERCEL_OIDC_TOKEN=""
81-
82-
# ===========================================
83-
# Development Notes
84-
# ===========================================
85-
#
86-
# Required for local development:
87-
# - DATABASE_URL
88-
# - DATABASE_URL_TERMINAL
89-
# - BETTER_AUTH_SECRET
90-
# - BETTER_AUTH_URL
91-
# - GITHUB_CLIENT_ID
92-
# - GITHUB_CLIENT_SECRET
3+
# ──────────────────────────────────────────────
934
#
94-
# Optional for enhanced features:
95-
# - GOOGLE_GEMINI_API_KEY (AI features)
96-
# - PINECONE_DB_API_KEY (Vector search)
5+
# The canonical env template lives at:
6+
# apps/web/.env.example
977
#
98-
# GitHub OAuth Setup:
99-
# 1. Go to https://github.com/settings/developers
100-
# 2. Create a new OAuth App
101-
# 3. Set Authorization callback URL to: http://localhost:3000/api/auth/callback/github
102-
# 4. Copy Client ID and Client Secret to this file
8+
# Copy it to apps/web/.env.local and fill in your values:
9+
# cp apps/web/.env.example apps/web/.env.local
10+
#
11+
# The dashboard (apps/web) reads these variables from
12+
# apps/web/.env.local automatically.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ yarn-error.log*
3636

3737
# env files (can opt-in for committing if needed)
3838
.env
39+
.env.local
40+
.env.*.local
3941

4042
# vercel
4143
.vercel
@@ -59,7 +61,7 @@ supercode-openmodel.md
5961
# /supercode-openmodel
6062
/skills
6163
/.vscode
62-
/scripts
64+
6365

6466
/tech
6567
.gstack/

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

0 commit comments

Comments
 (0)