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
rubywithbundler - You should have
npm
If you receive a 'bundle' command not found, you can install bundler via:
gem install bundlerNote, 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/gulpor create a build:./node_modules/.bin/gulp build
Alternatively, you can run:
npm run watchfor developmentnpm run buildfor 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:$PATHAfter adding the local path to your PATH variable, you must source your
.bashrc file.
source ~/.bashrcThen 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 testIn 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.