Wilma Plus Web's backend for communicating with Wilma API
NOTE! To run this backend, you need Wilma's API key. To obtain one, please email directly to Visma.
-
Copy file
config/config.json.example
toconfig.json
and insert your Wilma API Key towilma_apikey
. If you wish to add a backup key, set its value to keyreserve_api_key
. To use reserve key instead of main, changeuse_reserve
totrue
. -
Create server list cache with command
npm run cache-server
(in production, set this command to run once a hour, i.e via cron) -
Start webserver with command
npm run server
, which should start an http server on default port 3000. (Set your custom port with env variablePORT
).
Visma has CORS issues with Wilma, and requests don't work from browser to Wilma directly. That's why. When they'll fix their CORS issues, this backend wouldn't handle any confidential information, only API key generation and Wilma Plus' special features.