Update README with hot reloading instructions

This commit is contained in:
Richard Palethorpe
2025-03-25 13:54:25 +00:00
parent 71e66c651c
commit 959dd8c7f3

View File

@@ -120,6 +120,28 @@ go build -o localagent
./localagent ./localagent
``` ```
### Development
The development workflow is similar to the source build, but with additional steps for hot reloading of the frontend:
```bash
# Clone repo
git clone https://github.com/mudler/LocalAgent.git
cd LocalAgent
# Install dependencies and start frontend development server
cd webui/react-ui && bun i && bun run dev
```
Then in seperate terminal:
```bash
# Start development server
cd ../.. && go run main.go
```
> Note: see webui/react-ui/.vite.config.js for env vars that can be used to configure the backend URL
## CONNECTORS ## CONNECTORS
Link your agents to the services you already use. Configuration examples below. Link your agents to the services you already use. Configuration examples below.