JavaScript interface for Jetconf.
$ npm install --save jetconf
import Jetconf from 'jetconf';
const jc = new Jetconf('https://backend-url');
Interface to the Jetconf backend.
Parameters
-
backendUrl
Jetconf backend URL, including protocol
Examples
const jc = new Jetconf('http://localhost:5000/')
$ git clone https://gitlab.labs.nic.cz/jetconf/jetconf.js && cd jetconf.js
$ npm install
$ npm test
Set your options in test-config.js
. HTTP calls are mocked by default, if you want to use a real backend, set it's URL in the config file and enable it's use:
const config = {
backendUrl: 'https://url:port/',
useRealBackend: true,
…
Generating a test coverage report:
$ npm run coverage
Reports are placed into ./coverage
directory and a HTML version should open in your default browser when finished.
$ npm run build
Build output is placed to ./dist
directory.