Skip to content

Commit 52a0156

Browse files
committed
add instructions for how to use air
1 parent 019d9f3 commit 52a0156

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,30 @@ To uninstall:
2424
```bash
2525
kubectl delete ns "${NAMESPACE}"
2626
```
27+
28+
29+
## Development
30+
31+
### Frontend
32+
33+
To run frontend you could easily run with `air` that helps with hot-reload.
34+
35+
Before running `air` or manual steps you have to set up the following env
36+
```shell
37+
export KAFKA_BROKER=kafka-headless.namespace.svc:9092
38+
export REDIS_ADDR=redis.namespace.svc:6379
39+
export FRONTEND_LOCATION_ADDR=location.namespace.svc:8081
40+
```
41+
42+
Now let's run the frontend
43+
```shell
44+
air
45+
```
46+
47+
That will listen for the changes and restart the server every change.
48+
49+
If no want to use this approach, you could
50+
```shell
51+
make build-frontend-app
52+
go run ./cmd/hotrod/main.go frontend
53+
```

0 commit comments

Comments
 (0)