-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
60 lines (55 loc) · 1.43 KB
/
.gitpod.yml
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
image: gitpod/workspace-dotnet:latest
checkoutLocation: whatsth.is
additionalRepositories:
- url: https://github.com/soup-bowl/api.whatsth.is
checkoutLocation: api.whatsth.is
- url: https://github.com/soup-bowl/libwhatsthis
checkoutLocation: whatsth.is-lib
tasks:
- name: Library
before: cd ../whatsth.is-lib
init: |
npm ci
command: |
npm link
openMode: tab-before
- name: Backend
before: cd ../api.whatsth.is
env:
REDIS_URL: localhost:6379
init: |
docker pull redis/redis-stack:latest
dotnet restore
command: |
docker run -d -p 6379:6379 -p 8001:8001 redis/redis-stack:latest
dotnet watch run --project Whatsthis.API
- name: Frontend
init: |
nvm install 18
npm install
command: |
echo "VITE_API_URL=$(gp url 43594)" > .env.local
nvm use 18
npm start
openMode: split-right
workspaceLocation: whatsth.is/.github/gitpod.code-workspace
ports:
- port: 3000
name: Frontend
description: Access the React PWA app.
visibility: public
onOpen: open-browser
- port: 43594
name: Backend
description: Backend .NET API.
visibility: public
- port: 8001
name: Redis GUI
description: RedisInsight client for the backend API.
visibility: private
vscode:
extensions:
- muhammad-sammy.csharp
- cweijan.vscode-redis-client
- rangav.vscode-thunder-client
- ms-azuretools.vscode-docker