Horizon is the elos web application. It is based on Corey Prophitt's simple app structure for building AngularJS apps. This project includes a lot of basic configuration and Gulp tasks for linting JS and SCSS as well as building/watching code.
- You should have
ruby
withbundler
- You should have
npm
If you receive a 'bundle' command not found, you can install bundler
via:
gem install bundler
Note, OSX users may have to use sudo while installing bundler.
- Clone the repository and change into the repository directory
- Install ruby gems with
bundle install
- Install the node requirements:
npm install
- Install the Bower components:
./node_modules/.bin/bower install
- Run locally:
./node_modules/.bin/gulp
or create a build:./node_modules/.bin/gulp build
Alternatively, you can run:
npm run watch
for developmentnpm run build
for a production build
These notes only apply if you use gulp
or bower
.
It's easier to use local node modules if you append it to your PATH:
export PATH=node_modules/.bin:$PATH
After adding the local path to your PATH variable, you must source your
.bashrc
file.
source ~/.bashrc
Then you can use all node modules local to the repository without prepending
the long file path or installing gulp
or bower
as a global binary.
You can run the unit test suite via npm
:
npm test
In addition to running the test suite, the code is checked with jshint for any errors. The test suite will fail if any jshint errors are found.