Sheepdog exposes utilities that help you build free-range apps.
var appresolver = require('sheepdog').localAppResolver( key, options );
// Host an app resolver
appresolver.host();
// Get where the app content is hosted. Needed when creating the appconfig.
var target = appresolver.getUrl();Parameters:
key(optional) - The key to resolve. Defaults tonamefield from package.json.options(optional) - Object containing:dist- folder containing the app files to serve. Defaults todist.port- port to listen on. Defaults to3000, which is the port that the LMS expects it on by default.hostname- hostname (or IP) to listen on. Defaults tolocalhost. You should not need to change this.configFile- name off the app config file. Defaults toappconfig.json. You should not need to change this.
Run the tests locally:
- Install mocha:
npm i -g mocha - Run mocha:
mocha
This repository is configured with EditorConfig rules and contributions should make use of them.