You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -187,146 +187,22 @@ Each endpoint is supported by robust payload validation and detailed API documen
187
187
188
188
---
189
189
190
-
#Installing on the Google Cloud Platform (GCP)
190
+
## Installation Guides
191
191
192
-
## 🎥 Video Instructions
192
+
This API can be deployed to various cloud platforms:
193
193
194
-
Watch **[Detailed Video Instructions](https://youtu.be/6bC93sek9v8)** to set up the No-Code Architects Toolkit API.
194
+
-[Google Cloud Platform (GCP) Installation Guide](https://github.com/stephengpope/no-code-architects-toolkit/blob/main/docs/cloud-installation/gcp.md) - Deploy the API on Google Cloud Run
195
+
-[Digital Ocean Installation Guide](https://github.com/stephengpope/no-code-architects-toolkit/blob/main/docs/cloud-installation/do.md) - Deploy the API on Digital Ocean App Platform
195
196
196
-
- Use the **Docker Image** below:
197
+
## Testing the API
197
198
198
-
```
199
-
stephengpope/no-code-architects-toolkit:latest
200
-
```
201
-
202
-
### Video Resources
203
-
204
-
-**[Postman Template](https://bit.ly/49Gkh61)**
205
-
-**[NCA Toolkit API GPT](https://bit.ly/4feDDk4)**
206
-
207
-
Or use the guide below walks you through the steps to install the NCA Toolkit API on GCP.
208
-
209
-
---
210
-
211
-
## **Prerequisites**
212
-
- A Google Cloud account. [Sign up here](https://cloud.google.com/) if you don't already have one.
213
-
- New users receive $300 in free credits.
214
-
- Basic knowledge of GCP services such as Cloud Run and Cloud Storage.
215
-
- A terminal or code editor for managing files.
216
-
217
-
---
218
-
219
-
## **Step 1: Create a Google Cloud Project**
220
-
1. Log into the [GCP Console](https://console.cloud.google.com/).
221
-
2. Click on the **Project Selector** in the top navigation bar and select **New Project**.
222
-
3. Enter a project name, such as `NCA Toolkit Project`.
223
-
4. Click **Create**.
224
-
225
-
---
226
-
227
-
## **Step 2: Enable Required APIs**
228
-
Enable the following APIs:
229
-
-**Cloud Storage API**
230
-
-**Cloud Storage JSON API**
231
-
-**Cloud Run API**
232
-
233
-
### **How to Enable APIs:**
234
-
1. In the GCP Console, navigate to **APIs & Services** > **Enable APIs and Services**.
235
-
2. Search for each API, click on it, and enable it.
236
-
237
-
---
238
-
239
-
## **Step 3: Create a Service Account**
240
-
1. Navigate to **IAM & Admin** > **Service Accounts** in the GCP Console.
241
-
2. Click **+ Create Service Account**.
242
-
- Enter a name (e.g., `NCA Toolkit Service Account`).
243
-
3. Assign the following roles to the service account:
244
-
-**Storage Admin**
245
-
-**Viewer**
246
-
4. Click **Done** to create the service account.
247
-
5. Open the service account details and navigate to the **Keys** tab.
248
-
- Click **Add Key** > **Create New Key**.
249
-
- Choose **JSON** format, download the file, and store it securely.
250
-
251
-
---
252
-
253
-
## **Step 4: Create a Cloud Storage Bucket**
254
-
1. Navigate to **Storage** > **Buckets** in the GCP Console.
255
-
2. Click **+ Create Bucket**.
256
-
- Choose a unique bucket name (e.g., `nca-toolkit-bucket`).
257
-
- Leave default settings, but:
258
-
- Uncheck **Enforce public access prevention**.
259
-
- Set **Access Control** to **Uniform**.
260
-
3. Click **Create** to finish.
261
-
4. Go to the bucket permissions, and add **allUsers** as a principal with the role:
262
-
-**Storage Object Viewer**.
263
-
5. Save changes.
264
-
265
-
---
266
-
267
-
## **Step 5: Deploy on Google Cloud Run**
268
-
269
-
### 1. Navigate to Cloud Run
270
-
- Open the **Cloud Run** service in the **Google Cloud Console**.
271
-
272
-
### 2. Create a New Service
273
-
- Click **Create Service**.
274
-
- Then **Deploy one revision from Docker Hub using the image below**:
275
-
276
-
```
277
-
stephengpope/no-code-architects-toolkit:latest
278
-
```
279
-
280
-
### 3. Allow Unauthenticated Invocations
281
-
- Check the box to **allow unauthenticated invocations**.
282
-
283
-
### 4. Configure Resource Allocation
284
-
- Set **Memory**: `16 GB`.
285
-
- Set **CPU**: `4 CPUs`.
286
-
- Set **CPU Allocation**: **Always Allocated**.
287
-
288
-
### 5. Adjust Scaling Settings
289
-
-**Minimum Instances**: `0` (to minimize cost during idle times).
290
-
-**Maximum Instances**: `5` (adjustable based on expected load).
291
-
292
-
### 6. Use Second-Generation Servers
293
-
- Scroll to **Platform Version** and select **Second Generation**.
294
-
- Second-generation servers offer better performance and feature support for advanced use cases.
295
-
296
-
### 7. Add Environment Variables
297
-
- Add the following environment variables:
298
-
-`API_KEY`: Your API key (e.g., `Test123`).
299
-
-`GCP_BUCKET_NAME`: The name of your Cloud Storage bucket.
300
-
-`GCP_SA_CREDENTIALS`: The JSON key of your service account.
301
-
- Paste the **entire contents** of the downloaded JSON key file into this field.
- Enable **Startup Boost** to improve performance for the first request after a cold start.
310
-
311
-
### 9. Deploy the Service
312
-
- Verify all settings and click **Create**.
313
-
- The deployment process might take a few minutes. Once completed, a green checkmark should appear in the Cloud Run dashboard.
314
-
315
-
By following these steps, the NCA Toolkit will be successfully deployed and accessible via Google Cloud Run with second-generation servers for optimal performance.
316
-
317
-
---
318
-
319
-
## **Step 6: Test the Deployment**
320
-
321
-
1. Install **[Postman Template](https://bit.ly/49Gkh61)** on your computer.
322
-
2. Import the API example requests from the NCA Toolkit GitHub repository.
323
-
3. Configure two environment variables in Postman:
324
-
-`base_url`: Your deployed Cloud Run service URL.
325
-
-`x-api-key`: The API key you configured in **Step 5**.
326
-
4. Use the example requests to validate that the API is functioning correctly.
327
-
5. Use the **[NCA Toolkit API GPT](https://bit.ly/4feDDk4)** to learn more.
328
-
329
-
By following these steps, your NCA Toolkit API should be successfully deployed on Google Cloud Platform.
199
+
1. Install the **[Postman Template](https://bit.ly/49Gkhl)** on your computer
200
+
2. Import the API example requests from the template
201
+
3. Configure your environment variables in Postman:
202
+
-`base_url`: Your deployed API URL
203
+
-`x-api-key`: Your API key configured during installation
204
+
4. Use the example requests to validate that the API is functioning correctly
205
+
5. Use the **[NCA Toolkit API GPT](https://bit.ly/4feDDk4)** to explore additional features
0 commit comments