|
3 | 3 | 1. Login to Render.
|
4 | 4 | 2. Click "+ New" and select "Web Service".
|
5 | 5 | 3. Choose the DTPlatform repository and connect.
|
6 |
| -4. Fill in the following details: |
7 |
| -Language: Node |
8 |
| -Root Directory: backend |
9 |
| -Build Command: yarn |
10 |
| -Start Command: npm start |
11 |
| -Instance Type: Free |
12 |
| -5. Set Environment Variables: |
13 |
| -REACT_APP_MONGODB: your_mongodb_key |
14 |
| - |
| 6 | +4. Fill in the following details: |
| 7 | +Language: Node |
| 8 | +Root Directory: backend |
| 9 | +Build Command: yarn |
| 10 | +Start Command: npm start |
| 11 | +Instance Type: Free |
| 12 | +5. Set Environment Variables: |
| 13 | +REACT_APP_MONGODB: your_mongodb_key |
| 14 | + |
15 | 15 | ## Deploy frontend on Netlify.com
|
16 | 16 | 1. Login to Netlify.
|
17 | 17 | 2. Click "Add new site" and select "Import an existing project".
|
18 | 18 | 3. Choose the DTPlatform repository and connect.
|
19 |
| -4. Fill in the following details: |
20 |
| -Base Directory: frontend-vue |
21 |
| -Build Command: npm run build |
22 |
| -Publish Directory: frontend-vue/dist |
23 |
| -Instance Type: Free |
24 |
| -5. Set Environment Variables: |
25 |
| -VITE_AQI_API_KEY: your_aqi_key |
26 |
| -VITE_AZURE_MAP_KEY: your_azure_key |
27 |
| -VITE_MAPBOX_KEY: your_mapbox_key |
28 |
| -VITE_TRAFFIC_API_KEY: your_traffic_key |
| 19 | +4. Fill in the following details: |
| 20 | +Base Directory: frontend-vue |
| 21 | +Build Command: npm run build |
| 22 | +Publish Directory: frontend-vue/dist |
| 23 | +Instance Type: Free |
| 24 | +5. Set Environment Variables: |
| 25 | +VITE_AQI_API_KEY: your_aqi_key |
| 26 | +VITE_AZURE_MAP_KEY: your_azure_key |
| 27 | +VITE_MAPBOX_KEY: your_mapbox_key |
| 28 | +VITE_TRAFFIC_API_KEY: your_traffic_key |
0 commit comments