Butler app duplicator

App duplicator service for Qlik Sense

App duplicator service for Qlik Sense

I worked on a small node.js server during the past couple of weeks. The idea came from the fact that

  1. I over and over again find myself creating Sense apps that are almost identical, and
  2. people starting out as Sense developers spend too much time learning the basics. I wanted to bootstrap their learning process by providing well written skeleton apps for them.

This could of course be achieved by just duplicating apps using the QMC, but it would be way better if there was a nice little web app that listed the available Sense app templates, and allowed anyone (with permissions to create apps) to create new apps based on them. Or maybe this feature could even be integrated into one of the different Sense hubs that are now available…

Keep it simple

The app duplicator service is really quite simple, in its current form it exposes three endpoints:

  • /getTemplateList
    Returns a JSON with information about the apps defined to be templates, using a custom property in the QMC
  • /duplicateNewScript
    Duplicates the template app and replaces the new app’s script with a script retrieved from an online location, for example a file stored in GitHub. The new app is reloaded before saved to disk.
  • /duplicateKeepScript
    Duplicates the template app and keeps the template’s script. The new app is reloaded before saved to disk.

No UI included

There is no user interface included. You will need to build your own, or adapt some existing web app to also use the duplicator service.

Maybe you could even open source your UI for the duplicator service, so others can benefit from it too? Sharing is caring, after all..

Happy holidays everyone!

Göran Sander Stockholm, Sweden

Qlik Sense consultant and toolmaker at Ptarmigan Labs. Ten years at Spotify, Qlik Luminary and Partner Ambassador, author of the open source Butler tools.

All posts by Göran Sander
Keep reading

More about

Butler

Running Butler tools as Windows services

Several of the Butler family of open source tools for Qlik Sense Enterprise are intended to run 24/7. This article looks at how to achieve enterprise grade deployment of Butler & friends using standard Windows services.

10 min read
Butler app duplicator

Qlik Sense app duplicator 2.0 released

On the surface everything looks the same. Under the hood everything has changed. The 2.0 release of the Qlik Sense app duplicator is a major update. Most code has been refactored. The most notable changes are: * Switched to using Enigma.js for talking to the Sense engine, instead of

1 min read