Local Development
Use this page as the English entry point for local Komari development.
Typical Workflow
- Clone the backend repository.
- Clone and build the frontend theme.
- Pack the frontend
distdirectory intodist.tar.zstin the backend's default theme directory. - Run the backend server locally.
Frontend build:
bash
git clone https://github.com/komari-monitor/komari-web
cd komari-web
npm install
npm run buildBackend build:
bash
git clone https://github.com/komari-monitor/komari
cd komari
mkdir -p web/public/defaultTheme
tar -cf /tmp/komari-dist.tar -C ../komari-web/dist .
zstd -19 -T0 -f /tmp/komari-dist.tar -o web/public/defaultTheme/dist.tar.zst
rm -f /tmp/komari-dist.tar
cp ../komari-web/komari-theme.json web/public/defaultTheme/
go run . server -l 127.0.0.1:25774For the original Chinese guide, see Local development.