jetconf

0.0.1 • Public • Published

Jetconf.js

JavaScript interface for Jetconf.

Installation & basic usage

$ npm install --save jetconf
import Jetconf from 'jetconf';

const jc = new Jetconf('https://backend-url');

API

Jetconf

Interface to the Jetconf backend.

Parameters

  • backendUrl Jetconf backend URL, including protocol

Examples

const jc = new Jetconf('http://localhost:5000/')

Development

$ git clone https://gitlab.labs.nic.cz/jetconf/jetconf.js && cd jetconf.js
$ npm install

Testing

$ 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.

Building

$ npm run build

Build output is placed to ./dist directory.

Dependencies (0)

    Dev Dependencies (17)

    Package Sidebar

    Install

    npm i jetconf

    Weekly Downloads

    1

    Version

    0.0.1

    License

    GPL-3.0

    Last publish

    Collaborators

    • helb