Developer Setup¶
Libredesk is a monorepo with a Go backend and a Vue.js frontend. The frontend uses Shadcn for UI components.
Pre-requisites¶
go
nodejs
(if you are working on the frontend) andpnpm
- Postgres database (>= 13)
First time setup¶
Clone the repository:
git clone https://github.com/abhinavxd/libredesk.git
- Copy
config.toml.sample
asconfig.toml
and add your config. - Run
make
to build the libredesk binary. Once the binary is built, run./libredesk --install
to run the DB setup and set the System user password.
Running the Dev Environment¶
- Run
make run-backend
to start the libredesk backend dev server on:9000
. - Run
make run-frontend
to start the Vue frontend in dev mode using pnpm on:8000
. Requests are proxied to the backend running on:9000
checkvite.config.js
for the proxy config.
Production Build¶
Run make
to build the Go binary, build the Javascript frontend, and embed the static assets producing a single self-contained binary, libredesk
.