-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfaq.html
More file actions
365 lines (340 loc) · 16.9 KB
/
Copy pathfaq.html
File metadata and controls
365 lines (340 loc) · 16.9 KB
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
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>gcOpen - FAQ</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
:root {
--primary-color: #0056b3;
--secondary-color: #17a2b8;
--accent-color: #ffc107;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
padding-top: 56px;
}
.hero-section {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
padding: 50px 0;
margin-bottom: 40px;
}
.accordion-button:not(.collapsed) {
background-color: #e9ecef;
color: var(--primary-color);
}
.code-block {
background-color: #f8f9fa;
border-radius: 5px;
padding: 15px;
margin: 15px 0;
font-family: monospace;
}
footer {
background-color: #343a40;
color: white;
padding: 3rem 0;
margin-top: 60px;
}
.step-number {
background-color: var(--primary-color);
color: white;
border-radius: 50%;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 10px;
font-weight: bold;
}
.step-item {
display: flex;
align-items: center;
margin-bottom: 20px;
}
</style>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="index.html">gcOpen</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" href="index.html#products">Products</a>
</li>
<li class="nav-item">
<a class="nav-link" href="index.html#pricing">Get Pricing</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="faq.html">FAQ</a>
</li>
<li class="nav-item">
<a class="nav-link" href="index.html#contact">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Hero Section -->
<div class="hero-section text-center">
<h1 class="display-5">Frequently Asked Questions</h1>
<p class="lead">Learn how to install and deploy your gcOpen applications</p>
</div>
<!-- FAQ Section -->
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto">
<!-- How to Install a Laravel Repository -->
<div class="card mb-4">
<div class="card-header">
<h4>How to Install a Laravel Repository</h4>
</div>
<div class="card-body">
<div class="step-item">
<div class="step-number">1</div>
<div>
<h5>Clone the Repository</h5>
<p>First, clone the desired gcOpen repository from GitHub:</p>
<div class="code-block">
git clone https://github.com/gcopen/gcBid.git<br>
cd gcBid
</div>
</div>
</div>
<div class="step-item">
<div class="step-number">2</div>
<div>
<h5>Install Dependencies</h5>
<p>Install PHP and Node.js dependencies:</p>
<div class="code-block">
composer install<br>
npm install<br>
npm run build
</div>
</div>
</div>
<div class="step-item">
<div class="step-number">3</div>
<div>
<h5>Configure Environment</h5>
<p>Copy the environment file and configure it:</p>
<div class="code-block">
cp .env.example .env<br>
php artisan key:generate
</div>
<p>Edit the .env file with your database credentials and settings.</p>
</div>
</div>
<div class="step-item">
<div class="step-number">4</div>
<div>
<h5>Database Setup</h5>
<p>Run migrations to set up the database:</p>
<div class="code-block">
php artisan migrate<br>
php artisan db:seed (optional)
</div>
</div>
</div>
<div class="step-item">
<div class="step-number">5</div>
<div>
<h5>Start the Application</h5>
<p>Run the Laravel development server:</p>
<div class="code-block">
php artisan serve
</div>
<p>Access your application at http://localhost:8000</p>
</div>
</div>
</div>
</div>
<!-- Hosting Options -->
<div class="accordion mb-5" id="hostingAccordion">
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#firebase">
<h5><i class="fas fa-fire me-2"></i> Firebase Hosting</h5>
</button>
</h2>
<div id="firebase" class="accordion-collapse collapse show" data-bs-parent="#hostingAccordion">
<div class="accordion-body">
<h6>Steps to deploy on Firebase Hosting:</h6>
<ol>
<li>Install Firebase CLI: <code>npm install -g firebase-tools</code></li>
<li>Login to Firebase: <code>firebase login</code></li>
<li>Initialize Firebase in your project: <code>firebase init</code></li>
<li>Configure Firebase for PHP hosting (using Firebase Functions)</li>
<li>Deploy your application: <code>firebase deploy</code></li>
</ol>
<div class="alert alert-info">
<strong>Note:</strong> Firebase Hosting doesn't natively support PHP. You'll need to use Firebase Functions or set up a reverse proxy to serve your Laravel application.
</div>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#laravel-forge">
<h5><i class="fas fa-server me-2"></i> Laravel Forge</h5>
</button>
</h2>
<div id="laravel-forge" class="accordion-collapse collapse" data-bs-parent="#hostingAccordion">
<div class="accordion-body">
<h6>Deploy using Laravel Forge:</h6>
<ol>
<li>Sign up for Laravel Forge account</li>
<li>Connect your server provider (DigitalOcean, AWS, etc.)</li>
<li>Create a new server and site</li>
<li>Connect your GitHub repository</li>
<li>Configure environment variables in Forge</li>
<li>Deploy with a single click</li>
</ol>
<div class="alert alert-success">
<strong>Benefit:</strong> Laravel Forge provides automated deployments, SSL certificates, and server management.
</div>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#digitalocean">
<h5><i class="fas fa-water me-2"></i> DigitalOcean</h5>
</button>
</h2>
<div id="digitalocean" class="accordion-collapse collapse" data-bs-parent="#hostingAccordion">
<div class="accordion-body">
<h6>Manual deployment on DigitalOcean:</h6>
<ol>
<li>Create a Droplet with Ubuntu/Debian</li>
<li>Install LEMP stack (Nginx, MySQL, PHP)</li>
<li>Configure Nginx for Laravel</li>
<li>Clone your repository to the server</li>
<li>Set up environment variables</li>
<li>Run migrations and optimize</li>
<li>Configure supervisor for queues (if needed)</li>
</ol>
<div class="alert alert-warning">
<strong>Security:</strong> Ensure you secure your server with firewalls and regular updates.
</div>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#laravel-cloud">
<h5><i class="fas fa-cloud me-2"></i> Laravel Cloud</h5>
</button>
</h2>
<div id="laravel-cloud" class="accordion-collapse collapse" data-bs-parent="#hostingAccordion">
<div class="accordion-body">
<h6>Using Laravel Cloud:</h6>
<ol>
<li>Create an account on Laravel Cloud</li>
<li>Connect your GitHub repository</li>
<li>Select your deployment region</li>
<li>Configure environment variables</li>
<li>Choose database and cache settings</li>
<li>Deploy automatically</li>
</ol>
<div class="alert alert-primary">
<strong>Advantages:</strong> Laravel Cloud offers seamless integration with Laravel applications and automatic scaling.
</div>
</div>
</div>
</div>
</div>
<!-- Common Issues -->
<div class="card mb-4">
<div class="card-header">
<h4>Common Issues and Solutions</h4>
</div>
<div class="card-body">
<h5>Permission Issues</h5>
<p>If you encounter permission errors:</p>
<div class="code-block">
sudo chown -R www-data:www-data storage bootstrap/cache<br>
sudo chmod -R 775 storage bootstrap/cache
</div>
<h5>Composer Install Fails</h5>
<p>If composer install fails, try:</p>
<div class="code-block">
composer install --no-scripts<br>
composer run-script post-autoload-dump
</div>
<h5>Database Connection Issues</h5>
<p>Check your .env file for correct database credentials and ensure your database server is running.</p>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="text-center text-lg-start">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-12 mb-4 mb-md-0">
<h5 class="text-uppercase">gcOpen</h5>
<p>
Open source tools for the modern construction industry. Empowering general contractors with technology.
</p>
</div>
<div class="col-lg-3 col-md-6 mb-4 mb-md-0">
<h5 class="text-uppercase">Links</h5>
<ul class="list-unstyled mb-0">
<li>
<a href="#" class="text-white">About Us</a>
</li>
<li>
<a href="faq.html" class="text-white">FAQ</a>
</li>
<li>
<a href="#" class="text-white">Documentation</a>
</li>
<li>
<a href="index.html#contact" class="text-white">Contact</a>
</li>
</ul>
</div>
<div class="col-lg-3 col-md-6 mb-4 mb-md-0">
<h5 class="text-uppercase mb-4">Social</h5>
<a class="btn btn-outline-light btn-floating m-1" href="#" role="button">
<i class="fab fa-facebook-f"></i>
</a>
<a class="btn btn-outline-light btn-floating m-1" href="#" role="button">
<i class="fab fa-twitter"></i>
</a>
<a class="btn btn-outline-light btn-floating m-1" href="#" role="button">
<i class="fab fa-google"></i>
</a>
<a class="btn btn-outline-light btn-floating m-1" href="#" role="button">
<i class="fab fa-instagram"></i>
</a>
<a class="btn btn-outline-light btn-floating m-1" href="#" role="button">
<i class="fab fa-linkedin-in"></i>
</a>
<a class="btn btn-outline-light btn-floating m-1" href="#" role="button">
<i class="fab fa-github"></i>
</a>
</div>
</div>
</div>
<div class="text-center p-3" style="background-color: rgba(0, 0, 0, 0.2);">
© 2025 gcOpen.org - All rights reserved
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>