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
Copy file name to clipboardExpand all lines: README.md
+15
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,21 @@ Replace `{survey_id}` with the actual survey ID from your created survey.
138
138
139
139
For detailed API documentation, refer to the [api_endpoints.md](api_endpoints.md) file.
140
140
141
+
## Setting up Environment Variables in DigitalOcean App Platform
142
+
143
+
After creating your app in DigitalOcean App Platform:
144
+
145
+
1. Go to the App Platform dashboard and select your app.
146
+
2. Click on the "Settings" tab.
147
+
3. Scroll down to the "Environment Variables" section.
148
+
4. Click "Edit" and then "Add Variable".
149
+
5. Add a new variable:
150
+
- Key: MONGO_URI
151
+
- Value: Your MongoDB connection string (e.g., mongodb+srv://username:password@cluster.mongodb.net/database?retryWrites=true&w=majority)
152
+
6. Click "Save".
153
+
154
+
The ${backend.INTERNAL_URL} and ${backend.PORT} variables are automatically set by DigitalOcean App Platform, so you don't need to configure them manually.
0 commit comments