| `userAgent` | `USER_AGENT` | Will be used for all HTTP requests (search, routing, GPX/KML/OSM/GeoJSON files). You better provide your e-mail address in here. |
| `host` | | The ip address to listen on. |
| `port` | | The port to listen on. |
| `db.type` | `DB_TYPE` | The type of database. Either `mysql`, `postgres`, `mariadb`, `sqlite`, or `mssql`. |
| `db.host` | `DB_HOST` | The host name of the database server (default: `localhost`). |
| `db.port` | `DB_PORT` | The port of the database server (optional). |
| `db.database` | `DB_NAME` | The name of the database (default: `facilmap`). |
| `db.user` | `DB_USER` | The username to connect to the database with (default: `facilmap`). |
| `db.password` | `DB_PASSWORD` | The password to connect to the database with. |
Development
-----------
To get the server running, run `yarn run deps` to install the dependencies, and then `yarn run server` to start the server.
For developing the frontend/client, FacilMap server can integrate a webpack-dev-server. This server will automatically
recompile the frontend files when a file changes, and even delay reloads until the compilation has finished. To run
the dev server, first link the dependencies by running `yarn link` in the `client/` and `frontend/` directories, and then
`yarn link facilmap-frontend facilmap-client` in the `server/` directory. Then start the server in development mode
using `FM_DEV=true npm run server`.
To enable debug output of various components, additionally prepend the command by `DEBUG=*`. See the documentation of
[debug](https://github.com/visionmedia/debug). To only enable the debug logging of SQL queries, use `DEBUG=sql`.