A collection of preference editing tools for the Global Public Inclusive Infrastructure
JavaScript CSS HTML
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demos
src
tests
LICENSE.txt
.gitignore
.jshintignore
.jshintrc
Gruntfile.js
README.md
package.json
start.js

README.md

prefsEditors

GPII preferences editors, responsible for authoring user preference sets.

For more background about these tools, see

Installation

  • Create a directory where you want to check out the preferences editors.
  • Navigate to that directory.
  • Run the following command
git clone https://github.com/GPII/prefsEditors

Running the preferences editors

In the new subdirectory "prefsEditors" you will find this README.md file, a few other files and a few directories.

Go to the prefsEditors directory and install its dependencies

# navigate to the prefsEditors directory
cd prefsEditors

# install dependencies
npm install

Open with default settings (running on localhost, port 5559 with default path to the connect module)

node start.js

Specifying the options of port, host and connect path:

# find available port, 
# start the webserver and
# open url in the default browser
# command: node start.js <kettle path> <host> <port>
node start.js ./node_modules/kettle/node_modules/express/node_modules/connect 127.0.0.1 5559

Development

Dependencies

All other dependencies will be installed by running the following from the project root:

npm install

Linting

# Lint all json and js files
grunt

# Lint only js files
grunt jshint

# Lint only json files
grunt jsonlint