0.0.1 • Published 8 years ago
jetconf v0.0.1
Jetconf.js
JavaScript interface for Jetconf.
Installation & basic usage
$ npm install --save jetconfimport Jetconf from 'jetconf';
const jc = new Jetconf('https://backend-url');API
Jetconf
Interface to the Jetconf backend.
Parameters
backendUrlJetconf 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 installTesting
$ npm testSet 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 coverageReports are placed into ./coverage directory and a HTML version should open in your default browser when finished.
Building
$ npm run buildBuild output is placed to ./dist directory.
0.0.1
8 years ago