Spaces:
Runtime error
Runtime error
Installing on Digital Ocean
This guide walks you through deploying the No-Code Architects Toolkit API on Digital Ocean's App Platform.
Prerequisites
- A Digital Ocean account (Sign up here)
- Basic familiarity with Digital Ocean App Platform
- A credit/debit card for billing (you'll only be charged for what you use)
Step 1: Create a New Project
- Sign in to your Digital Ocean account
- Create a new project or select an existing one
- This will organize your resources for the NCA Toolkit
Step 2: Create a Digital Ocean Space
You'll need to create a Space (Digital Ocean's object storage) for the toolkit to store processed files:
- Navigate to Spaces Object Storage in the Digital Ocean dashboard
- Click Create a Space
- Select a region (e.g., New York)
- Give your bucket a name (e.g.,
nca-toolkit-bucket) - Select your project
- Click Create Space
Step 3: Generate API Keys for Your Space
- From your new Space, go to Settings
- Click Create Access Key
- Select Full Access
- Give your key a name (e.g.,
nca-toolkit-key) - Click Create Access Key
- IMPORTANT: Save both the Access Key and Secret Key shown - you will only see them once!
- Also copy the Space URL (endpoint) for use in the next step
Step 4: Deploy the App
- From your Digital Ocean dashboard, click Create and select App
- Choose Container Image as the deployment source
- Select Docker Hub for the repository
- Enter
stephengpope/no-code-architects-toolkitas the image name - Enter
latestfor the image tag - Click Next
- If needed, edit the name to remove any extra dashes (Digital Ocean may show an error for long names)
- Choose Web Service as the service type
Step 5: Configure Resources
- Select a plan with adequate resources for your needs:
- For testing, a $50/month instance provides good performance
- For smaller workloads, you can select a smaller instance
- Note: You're only charged for the time the server is running
- Set Containers to 1
- Close the resource selection dialog
Step 6: Configure Environment Variables
Add the following environment variables exactly as shown (be careful with underscores vs. dashes and avoid any leading/trailing spaces):
API_KEY: Your API key (e.g.,test123for testing - change for production)S3_ENDPOINT_URL: The URL of your Space (copied from Step 3)S3_ACCESS_KEY: The access key from Step 3S3_SECRET_KEY: The secret key from Step 3S3_BUCKET_NAME: The name of your Space bucket (e.g.,nca-toolkit-bucket)S3_REGION: The region code of your Space (e.g.,NYC3for New York)
Step 7: Finalize and Deploy
- For Deployment Region, select a region close to your location (e.g., San Francisco)
- You can use the default app name or choose a custom name
- Click Create Resource
- Wait for the deployment to complete (this may take a few minutes)
- You may need to refresh the page to see updates
Step 8: Test Your Deployment
Using Postman
- Sign up for or log in to Postman
- Import the NCA Toolkit Postman Collection
- Fork the collection to your workspace
- Create a new environment:
- Name it "Digital Ocean" or similar
- Add a variable
x-api-keywith the value matching your API_KEY (e.g.,test123) - Add a variable
base_urlwith the value of your app's URL (shown in the Digital Ocean dashboard) - Save the environment
- In the collection, navigate to the
toolkit/authenticateendpoint and click Send - If you receive a success response, your deployment is working correctly
- Then test the
toolkit/testendpoint to verify complete functionality
Monitoring and Management
- Overview: View basic information about your app
- Insights: Monitor CPU and memory usage
- Runtime Logs: View logs of API calls and server activity
- Console: Access the server's command line (rarely needed)
- Settings: Modify your app's configuration
Next Steps
Now that you have successfully deployed the NCA Toolkit API, you can:
- Explore all the available endpoints in the Postman collection
- Integrate the API with your applications
- Consider securing your API key with a more complex value
- Scale your resources up or down based on your usage requirements
Remember, Digital Ocean charges based on usage, so you can always delete the app when you're not using it to save costs.