1.1 KiB
Dev setup
- Run
yarn install
to install the dependencies - Run
yarn build
to build the JS bundles - Copy
config.env.example
toconfig.env
and adjust the settings - Run
yarn server
inside theserver
directory
For developing the frontend/client, FacilMap server can integrate Vite. This server will transpile frontend files on the fly can even apply changes to Vue components without having to reload the page. To run the dev server, run yarn dev-server
instead of yarn server
in the server
directory. Note that changes in the client
, types
or leaflet
directory still have to be built using yarn build
in the respective directories for the dev-server to notice them.
While developing the server, run yarn ts-server
, which will start the server straight from the TypeScript files (which makes it obsolete to run yarn build
every time before restarting the server).
To enable debug output of various components, additionally prepend the command by DEBUG=*
. See the documentation of
debug. To only enable the debug logging of SQL queries, use DEBUG=sql
.