File size: 15,440 Bytes
56a9e3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Launch Locally | CodeForge-AI</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script>
        tailwind.config = {
            darkMode: 'class',
            theme: {
                extend: {
                    colors: {
                        primary: '#ef4444',
                        secondary: '#6b7280'
                    }
                }
            }
        }
    </script>
</head>
<body class="bg-gray-900 text-white min-h-screen overflow-x-hidden">
    <!-- Navigation -->
    <nav class="bg-gray-800 border-b border-red-500/20 sticky top-0 z-50">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between items-center h-16">
                <div class="flex items-center space-x-4">
                    <div class="flex items-center space-x-2">
                        <a href="index.html" class="flex items-center space-x-2">
                            <div class="w-8 h-8 bg-red-500 rounded-lg flex items-center justify-center">
                                <i data-feather="code" class="w-4 h-4"></i>
                            </div>
                            <span class="text-xl font-bold text-white">CodeForge-AI</span>
                        </a>
                    </div>
                    <div class="hidden md:flex space-x-6">
                        <a href="workspaces.html" class="text-gray-300 hover:text-white transition-colors">Workspaces</a>
                        <a href="launch.html" class="text-red-400 hover:text-red-300 transition-colors">Launch Locally</a>
                        <a href="templates.html" class="text-gray-300 hover:text-white transition-colors">Templates</a>
                        <a href="deployments.html" class="text-gray-300 hover:text-white transition-colors">Deployments</a>
                        <a href="documentation.html" class="text-gray-300 hover:text-white transition-colors">Documentation</a>
                        <a href="admin-login.html" class="text-gray-300 hover:text-white transition-colors">Admin</a>
                    </div>
                </div>
                <div class="flex items-center space-x-4">
                    <a href="workspaces.html" class="bg-red-500 hover:bg-red-600 px-4 py-2 rounded-lg text-white font-medium transition-colors">
                        Start Coding
                    </a>
                    <a href="admin-login.html" class="bg-purple-500 hover:bg-purple-600 px-4 py-2 rounded-lg text-white font-medium transition-colors">
                        Admin Panel
                    </a>
                    <button class="text-gray-300 hover:text-white transition-colors">
                        <i data-feather="user" class="w-5 h-5"></i>
                    </button>
                </div>
            </div>
        </div>
    </nav>

    <!-- Launch Locally Header -->
    <div class="bg-gradient-to-br from-gray-800 to-gray-900 py-16">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="text-center">
                <h1 class="text-4xl md:text-6xl font-bold mb-6 bg-gradient-to-r from-red-400 to-red-600 bg-clip-text text-transparent">
                    Launch Locally
                </h1>
                <p class="text-xl text-gray-300 mb-8 max-w-3xl mx-auto">
                    Run CodeForge-AI on your local machine with Docker. Quick setup, full control.
                </p>
            </div>
        </div>
    </div>

    <!-- Installation Steps -->
    <div class="py-16 bg-gray-900">
        <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="bg-gray-800 rounded-2xl p-8 border border-red-500/20">
                <h2 class="text-3xl font-bold text-white mb-8 text-center">Quick Local Installation</h2>
                
                <!-- Prerequisites -->
                <div class="mb-12">
                    <h3 class="text-2xl font-semibold text-white mb-4 flex items-center">
                        <i data-feather="check-circle" class="w-6 h-6 text-green-400 mr-3"></i>
                        Prerequisites
                    </h3>
                    <div class="bg-gray-700 rounded-xl p-6 mb-6">
                        <p class="text-gray-300 mb-4">Make sure you have the following installed on your system:</p>
                        <ul class="space-y-2 text-gray-300">
                            <li class="flex items-center">
                                <i data-feather="check" class="w-4 h-4 text-green-400 mr-2"></i>
                                Docker Engine 20.10+ and Docker Compose
                            </li>
                            <li class="flex items-center">
                                <i data-feather="check" class="w-4 h-4 text-green-400 mr-2"></i>
                                Git (for cloning the repository)
                            </li>
                            <li class="flex items-center">
                                <i data-feather="check" class="w-4 h-4 text-green-400 mr-2"></i>
                                4GB+ RAM and 10GB+ free disk space
                            </li>
                        </ul>
                    </div>
                </div>

                <!-- Installation Steps -->
                <div class="space-y-8">
                    <!-- Step 1 -->
                    <div class="flex items-start space-x-4">
                        <div class="flex-shrink-0 w-8 h-8 bg-red-500 rounded-full flex items-center justify-center text-white font-bold">
                            1
                        </div>
                        <div class="flex-1">
                            <h4 class="text-xl font-semibold text-white mb-3">Clone the Repository</h4>
                            <div class="bg-black rounded-lg p-4 font-mono text-sm text-green-400 mb-3">
                                git clone https://github.com/codeforge-ai/codeforge.git<br>
                                cd codeforge
                            </div>
                            <p class="text-gray-300">Get the latest version of CodeForge-AI from our GitHub repository.</p>
                        </div>
                    </div>

                    <!-- Step 2 -->
                    <div class="flex items-start space-x-4">
                        <div class="flex-shrink-0 w-8 h-8 bg-red-500 rounded-full flex items-center justify-center text-white font-bold">
                            2
                        </div>
                        <div class="flex-1">
                            <h4 class="text-xl font-semibold text-white mb-3">Configure Environment</h4>
                            <div class="bg-black rounded-lg p-4 font-mono text-sm text-green-400 mb-3">
                                cp .env.example .env<br>
                                # Edit .env with your preferred settings
                            </div>
                            <p class="text-gray-300">Set up your environment variables for database, API keys, and other configurations.</p>
                        </div>
                    </div>

                    <!-- Step 3 -->
                    <div class="flex items-start space-x-4">
                        <div class="flex-shrink-0 w-8 h-8 bg-red-500 rounded-full flex items-center justify-center text-white font-bold">
                            3
                        </div>
                        <div class="flex-1">
                            <h4 class="text-xl font-semibold text-white mb-3">Start with Docker Compose</h4>
                            <div class="bg-black rounded-lg p-4 font-mono text-sm text-green-400 mb-3">
                                docker-compose up -d
                            </div>
                            <p class="text-gray-300">This will start all services including the web interface, API server, and database.</p>
                        </div>
                    </div>

                    <!-- Step 4 -->
                    <div class="flex items-start space-x-4">
                        <div class="flex-shrink-0 w-8 h-8 bg-red-500 rounded-full flex items-center justify-center text-white font-bold">
                            4
                        </div>
                        <div class="flex-1">
                            <h4 class="text-xl font-semibold text-white mb-3">Access Your Instance</h4>
                            <div class="bg-black rounded-lg p-4 font-mono text-sm text-green-400 mb-3">
                                # Open your browser and navigate to:<br>
                                http://localhost:3000
                            </div>
                            <p class="text-gray-300">Your local CodeForge-AI instance will be running and ready to use!</p>
                        </div>
                    </div>
                </div>

                <!-- Quick Start Button -->
                <div class="mt-12 text-center">
                    <a href="https://github.com/codeforge-ai/codeforge" target="_blank" class="bg-red-500 hover:bg-red-600 px-8 py-4 rounded-xl text-white font-semibold text-lg transition-all transform hover:scale-105 inline-flex items-center">
                        <i data-feather="download" class="w-5 h-5 mr-2"></i>
                        Download & Run Now
                    </a>
                </div>
            </div>
        </div>
    </div>

    <!-- Features Section -->
    <div class="py-16 bg-gray-800/50">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="text-center mb-16">
                <h2 class="text-4xl font-bold text-white mb-4">Why Run Locally?</h2>
                <p class="text-xl text-gray-300 max-w-3xl mx-auto">
                    Full control, enhanced privacy, and offline development capabilities
                </p>
            </div>
            
            <div class="grid md:grid-cols-3 gap-8">
                <div class="text-center">
                    <div class="w-20 h-20 bg-red-500 rounded-2xl flex items-center justify-center mx-auto mb-6">
                        <i data-feather="shield" class="w-10 h-10"></i>
                    </div>
                    <h3 class="text-2xl font-semibold text-white mb-4">Enhanced Security</h3>
                    <p class="text-gray-300">Keep your code and data completely private on your own infrastructure.</p>
                </div>
                
                <div class="text-center">
                    <div class="w-20 h-20 bg-blue-500 rounded-2xl flex items-center justify-center mx-auto mb-6">
                        <i data-feather="zap" class="w-10 h-10"></i>
                    </div>
                    <h3 class="text-2xl font-semibold text-white mb-4">Better Performance</h3>
                    <p class="text-gray-300">Faster development cycles with local network access and dedicated resources.</p>
                </div>
                
                <div class="text-center">
                    <div class="w-20 h-20 bg-green-500 rounded-2xl flex items-center justify-center mx-auto mb-6">
                        <i data-feather="wifi-off" class="w-10 h-10"></i>
                    </div>
                    <h3 class="text-2xl font-semibold text-white mb-4">Offline Development</h3>
                    <p class="text-gray-300">Work without internet connectivity and maintain productivity anywhere.</p>
                </div>
            </div>
        </div>
    </div>

    <!-- Footer -->
    <footer class="bg-gray-800 border-t border-gray-700 py-12">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="grid md:grid-cols-4 gap-8">
                <div>
                    <div class="flex items-center space-x-2 mb-4">
                        <div class="w-8 h-8 bg-red-500 rounded-lg flex items-center justify-center">
                            <i data-feather="code" class="w-4 h-4"></i>
                        </div>
                        <span class="text-xl font-bold text-white">CodeForge-AI</span>
                    </div>
                    <p class="text-gray-400 text-sm">
                        The autonomous development platform for modern developers.
                    </p>
                </div>
                <div>
                    <h4 class="text-white font-semibold mb-4">Product</h4>
                    <ul class="space-y-2 text-sm text-gray-400">
                        <li><a href="workspaces.html" class="hover:text-red-400 transition-colors">Workspaces</a></li>
                        <li><a href="launch.html" class="hover:text-red-400 transition-colors">Local Installation</a></li>
                        <li><a href="templates.html" class="hover:text-red-400 transition-colors">Templates</a></li>
                        <li><a href="documentation.html" class="hover:text-red-400 transition-colors">Documentation</a></li>
                    </ul>
                </div>
                <div>
                    <h4 class="text-white font-semibold mb-4">Company</h4>
                    <ul class="space-y-2 text-sm text-gray-400">
                        <li><a href="about.html" class="hover:text-red-400 transition-colors">About</a></li>
                        <li><a href="blog.html" class="hover:text-red-400 transition-colors">Blog</a></li>
                        <li><a href="careers.html" class="hover:text-red-400 transition-colors">Careers</a></li>
                        <li><a href="contact.html" class="hover:text-red-400 transition-colors">Contact</a></li>
                    </ul>
                </div>
                <div>
                    <h4 class="text-white font-semibold mb-4">Connect</h4>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-red-400 transition-colors">
                            <i data-feather="github" class="w-5 h-5"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-red-400 transition-colors">
                            <i data-feather="twitter" class="w-5 h-5"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-red-400 transition-colors">
                            <i data-feather="linkedin" class="w-5 h-5"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-red-400 transition-colors">
                            <i data-feather="discord" class="w-5 h-5"></i>
                        </a>
                    </div>
                </div>
            </div>
            <div class="border-t border-gray-700 mt-8 pt-8 text-center text-sm text-gray-400">
                <p>&copy; 2024 CodeForge-AI. All rights reserved. Built with security and performance in mind.</p>
            </div>
        </div>
    </footer>

    <script>
        // Initialize Feather Icons
        feather.replace();
    </script>
</body>
</html>