ddev-ui
Experimental UI for ddev based on golang as backend and vue3 as frontend.
Note that minimum requirements to compile this are:
- go v1.17
ddev should take care for the leftover parts of the frontend via ddev pnpm
commands as you can see below.
Project setup
git clone https://github.com/iammati/ddev-ui .
ddev pnpm install
Building the ui
In case you're running on wsl2 – as I do – you may want to checkout this video here as it installs chrome inside your wsl2 distribution to be able running the built golang binary.
ddev pnpm run build
go install
go run app.go
Compiles and hot-reloads for development
ddev pnpm run serve
Head over to http://ddev-ui.ddev.site:2999/public/
in order to see hot-reloads being available. Hot changes won't affect the golang runtime.
You may open another SSH connection to your server to make the API requests work and be handled by the golang backend by using:
go run app.go
In another terminal next to your running ddev pnpm run serve
.
Compiles and minifies for production
ddev pnpm run build
Lints and fixes files
ddev pnpm run lint