Rewriting my bot's dashboard, separating the backend into a /api
path, and using Vue.js for the front-end.
Well now I explain the thing
npm i -g @vue/cli
Go to the frontend folder.
Install front-end dependencies with npm i
Run npm run build
or vue-cli-service build
.
npm i
Soon an example of it.
npm start
If you chose SERVESTATIC='true'
, then just point to the correct port on your favorite web server.
Otherwise configure your server to always serve index.html
from the public folder, and the paths with /api
to the backend.
See Caddyfile
for an example on the Caddy web server.