Run the platform · Keep it running
Changing the interface
The full source of the interface is in the package. Change its texts, languages or design and build it again.
The package holds the full source of the interface in apps/web/src (React and TypeScript) next to the ready build in apps/web/dist, which is what the server sends to browsers. You need this page only to change the interface itself. The name, logo, colours and the texts of the public website are set in the admin panel without building anything: see Branding and website.
#What you need
Node.js 20 or newer on your own computer. Build there and upload the result; nothing is built on the hosting account. The build tools take about 190 MB in apps/web/node_modules and are not needed on the server.
#Build the interface
Open a terminal in the
apps/webfolder of the package and runnpm install.Make your changes in
apps/web/src.To see them while you work, start the application on your computer (
npm startin the main folder, with a.envfile and a database), then runnpm run devinapps/weband openhttp://localhost:5173. Every save shows at once. The page talks to the application onhttp://localhost:4000; setAPI_URLbeforenpm run devto use another address.Run
npm run build. It checks the code and writes a newapps/web/distfolder.Upload the new
apps/web/distfolder over the old one on your server and restart the application. cPanel: Restart in Setup Node.js App. VPS:pm2 restart convoq. With Docker, rundocker compose up -d --build.
#Change a text
Every text of the interface is in apps/web/src/locales, one file per language. en.json holds the English texts; the other files use the same keys. Change the value, keep the key and any {{name}} placeholders, and build.
#Add a language
Copy
apps/web/src/locales/en.jsonto a file named after the language code, for examplenl.json, and translate the values.In
apps/web/src/lib/i18n.ts, add a line toloaders, for examplenl: () => import("@/locales/nl.json"),, and an entry toLANGUAGES, for example{ code: "nl", label: "Nederlands", dir: "ltr" },. Use"rtl"for a language written from right to left.Build and upload as above. The new language appears in every language menu.
#Your changes and updates
An update replaces apps/web/src and apps/web/dist with the files of the new version. Keep a copy of your changes, for example in Git, apply them to the new version and build again.