Skip to content

Commit

Permalink
add instructions for how to use air
Browse files Browse the repository at this point in the history
  • Loading branch information
davixcky committed Dec 13, 2024
1 parent 019d9f3 commit 52a0156
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,30 @@ To uninstall:
```bash
kubectl delete ns "${NAMESPACE}"
```


## Development

### Frontend

To run frontend you could easily run with `air` that helps with hot-reload.

Before running `air` or manual steps you have to set up the following env
```shell
export KAFKA_BROKER=kafka-headless.namespace.svc:9092
export REDIS_ADDR=redis.namespace.svc:6379
export FRONTEND_LOCATION_ADDR=location.namespace.svc:8081
```

Now let's run the frontend
```shell
air
```

That will listen for the changes and restart the server every change.

If no want to use this approach, you could
```shell
make build-frontend-app
go run ./cmd/hotrod/main.go frontend
```

0 comments on commit 52a0156

Please sign in to comment.