refstack/refstack-ui
Michael Krotscheck 0d51cad50f Added karma into node PATH
Adding the karma-cli package installs it into node_modules/.bin/,
which npm's run command is aware of. As a result, we do not
need to explicitly invoke karma in the package.json's test
commands.

Change-Id: I8679026b72b36aba25a5817d66b3eef9e7411888
2015-06-04 20:27:24 +00:00
..
2015-06-03 01:24:31 +01:00
2015-04-27 09:50:27 -07:00
2015-04-27 09:50:27 -07:00
2015-06-04 20:27:24 +00:00
2015-04-27 09:50:27 -07:00

Refstack User Interface

User interface for interacting with the Refstack API.

Setup

Create a config.json file and specify your API endpoint inside this file:

cp app/config.json.sample app/config.json

You can start a development server by doing the following:

Install NodeJS and NPM:

curl -sL https://deb.nodesource.com/setup | sudo bash -

sudo apt-get install nodejs

From the Refstack project root directory, move into the UI folder:

cd refstack-ui

Install dependencies and start the server:

npm start

Doing this will automatically perform npm start and bower install to get all dependencies.

By default, as noted in package.json, the server will use 0.0.0.0:8080.

Test

To run unit tests, simply perform the following:

npm test