Humbl3m33 commited on
Commit
81c67ff
Β·
verified Β·
1 Parent(s): 02f50ff

Upload 5 files

Browse files
Next.config.j.s ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ // next.config.js
2
+ module.exports = {
3
+ reactStrictMode: true,
4
+ swcMinify: true,
5
+ // Add custom config options here if needed
6
+ };
components.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "default",
4
+ "rsc": true,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "tailwind.config.ts",
8
+ "css": "app/globals.css",
9
+ "baseColor": "neutral",
10
+ "cssVariables": true,
11
+ "prefix": ""
12
+ },
13
+ "aliases": {
14
+ "components": "@/components",
15
+ "utils": "@/lib/utils",
16
+ "ui": "@/components/ui",
17
+ "lib": "@/lib",
18
+ "hooks": "@/hooks"
19
+ },
20
+ "iconLibrary": "lucide"
21
+ }
deploy-buttons.html ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Deploy DEEP.REBUILD</title>
7
+ <style>
8
+ body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; padding: 2rem; background: #f8fafc; }
9
+ .container { max-width: 800px; margin: 0 auto; background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
10
+ .deploy-btn { display: inline-block; padding: 12px 24px; margin: 8px; background: #0070f3; color: white; text-decoration: none; border-radius: 8px; font-weight: 600; transition: all 0.2s; }
11
+ .deploy-btn:hover { background: #0051cc; transform: translateY(-1px); }
12
+ .hf-btn { background: #ff6b35; }
13
+ .hf-btn:hover { background: #e55a2b; }
14
+ .github-btn { background: #24292e; }
15
+ .github-btn:hover { background: #1a1e22; }
16
+ h1 { color: #1a202c; margin-bottom: 1rem; }
17
+ p { color: #4a5568; line-height: 1.6; }
18
+ .warning { background: #fef5e7; border: 1px solid #f6ad55; padding: 1rem; border-radius: 8px; margin: 1rem 0; }
19
+ </style>
20
+ </head>
21
+ <body>
22
+ <div class="container">
23
+ <h1>πŸš€ Deploy DEEP.REBUILD</h1>
24
+ <p>Choose your deployment platform. Make sure you have your environment variables ready!</p>
25
+
26
+ <div class="warning">
27
+ <strong>⚠️ Before deploying:</strong> Set up your API keys in the platform's environment variables section.
28
+ </div>
29
+
30
+ Vercel Deploy
31
+ <a href="https://vercel.com/new/clone?repository-url=https://github.com/YOUR_USERNAME/deep-rebuild&project-name=deep-rebuild&repository-name=deep-rebuild"
32
+ class="deploy-btn" target="_blank">
33
+ πŸ“¦ Deploy to Vercel
34
+ </a>
35
+
36
+ HuggingFace Deploy
37
+ <a href="https://huggingface.co/new-space?template=https://github.com/YOUR_USERNAME/deep-rebuild&sdk=docker&hardware=cpu-basic"
38
+ class="deploy-btn hf-btn" target="_blank">
39
+ πŸ€— Deploy to HuggingFace
40
+ </a>
41
+
42
+ GitHub Template
43
+ <a href="https://github.com/YOUR_USERNAME/deep-rebuild/generate"
44
+ class="deploy-btn github-btn" target="_blank">
45
+ πŸ“‹ Use as GitHub Template
46
+ </a>
47
+
48
+ <h2>πŸ“‹ Required Environment Variables</h2>
49
+ <ul>
50
+ <li><code>NEXT_PUBLIC_SUPABASE_URL</code> - Your Supabase project URL</li>
51
+ <li><code>SUPABASE_SERVICE_ROLE_KEY</code> - Supabase service role key</li>
52
+ <li><code>OPENAI_API_KEY</code> - OpenAI API key (optional)</li>
53
+ <li><code>OPENROUTER_API_KEY</code> - OpenRouter API key (optional)</li>
54
+ <li><code>GROQ_API_KEY</code> - Groq API key (optional)</li>
55
+ <li><code>XAI_API_KEY</code> - xAI Grok API key (optional)</li>
56
+ <li><code>MONGODB_URI</code> - MongoDB connection string (optional)</li>
57
+ </ul>
58
+
59
+ <p><strong>Note:</strong> You need at least one AI provider API key for the system to function.</p>
60
+ </div>
61
+ </body>
62
+ </html>
docker-compose.yml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3.8'
2
+
3
+ services:
4
+ deep-rebuild:
5
+ build: .
6
+ ports:
7
+ - "3000:3000"
8
+ environment:
9
+ - NODE_ENV=production
10
+ - NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL}
11
+ - SUPABASE_SERVICE_ROLE_KEY=${SUPABASE_SERVICE_ROLE_KEY}
12
+ - OPENAI_API_KEY=${OPENAI_API_KEY}
13
+ - OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
14
+ - GROQ_API_KEY=${GROQ_API_KEY}
15
+ - XAI_API_KEY=${XAI_API_KEY}
16
+ - MONGODB_URI=${MONGODB_URI}
17
+ restart: unless-stopped
18
+
19
+ # Optional: Local MongoDB for development
20
+ mongodb:
21
+ image: mongo:7
22
+ ports:
23
+ - "27017:27017"
24
+ environment:
25
+ - MONGO_INITDB_ROOT_USERNAME=admin
26
+ - MONGO_INITDB_ROOT_PASSWORD=password
27
+ - MONGO_INITDB_DATABASE=deep_rebuild
28
+ volumes:
29
+ - mongodb_data:/data/db
30
+ restart: unless-stopped
31
+
32
+ volumes:
33
+ mongodb_data:
huggingface-deploy.yml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Deploy to HuggingFace Spaces
2
+ on:
3
+ push:
4
+ branches: [ main ]
5
+ workflow_dispatch:
6
+
7
+ jobs:
8
+ deploy:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+
13
+ - name: Setup Node.js
14
+ uses: actions/setup-node@v3
15
+ with:
16
+ node-version: '18'
17
+
18
+ - name: Install dependencies
19
+ run: npm install
20
+
21
+ - name: Build application
22
+ run: npm run build
23
+
24
+ - name: Deploy to HuggingFace Spaces
25
+ uses: huggingface/huggingface_hub@main
26
+ with:
27
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
28
+ space_id: ${{ secrets.HF_SPACE_ID }}
29
+ dockerfile: "Dockerfile"