refstack/refstack-ui
Michael Krotscheck 6fffbca938 Added JavaScript Style Linting
This patch adds eslint, a permissively licensed (as opposed to
jshint or jslint) javascript style linter. It also enables the use
of 'npm run lint', which may be used in OpenStack's gate to
cause build failures when improperly formed javascript is
committed.

Existing javascript was updated to pass linting rules. Note
that most of these changes were formatting and file length
concerns. The noted stylistic change that we should probably
discuss is the use of singlequote vs. doublequote. Single is
the pep8 standard used in python, and thus enforcing that
seems to make the most sense.

Change-Id: I52768fe6e7ee1f76f0d67f44273fdc48b159489a
2015-06-04 21:10:48 +00:00
..
app Added JavaScript Style Linting 2015-06-04 21:10:48 +00:00
tests Added JavaScript Style Linting 2015-06-04 21:10:48 +00:00
.bowerrc Added groundwork for the refstack user-interface. 2015-04-13 23:43:43 -07:00
.eslintignore Added JavaScript Style Linting 2015-06-04 21:10:48 +00:00
.eslintrc Added JavaScript Style Linting 2015-06-04 21:10:48 +00:00
.gitignore Add results and test report page 2015-04-27 09:50:27 -07:00
README.rst Add results and test report page 2015-04-27 09:50:27 -07:00
bower.json Add results and test report page 2015-04-27 09:50:27 -07:00
package.json Added JavaScript Style Linting 2015-06-04 21:10:48 +00:00

README.rst

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