Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 1.01 KB

README.md

File metadata and controls

15 lines (10 loc) · 1.01 KB

Wilma Plus Web Backend

Wilma Plus Web's backend for communicating with Wilma API

Run backend

NOTE! To run this backend, you need Wilma's API key. To obtain one, please email directly to Visma.

  1. Copy file config/config.json.example to config.json and insert your Wilma API Key to wilma_apikey. If you wish to add a backup key, set its value to key reserve_api_key. To use reserve key instead of main, change use_reserve to true.

  2. Create server list cache with command npm run cache-server (in production, set this command to run once a hour, i.e via cron)

  3. Start webserver with command npm run server, which should start an http server on default port 3000. (Set your custom port with env variable PORT).

Reason of making this backend

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.