Skip to content

Wilma Plus Web's backend for communicating with Wilma API

Notifications You must be signed in to change notification settings

wilmaplus/web-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Wilma Plus Web's backend for communicating with Wilma API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published