Skip to content
Robby Ronk edited this page Aug 21, 2013 · 7 revisions

Install Ruby and Compass

Windows

  1. Use the installer at http://rubyinstaller.org/
  2. Open Command Prompt and type gem install compass. If that doesn't work, you need to add the bin directory to your PATH environment variable. Don't worry if all that is over your head, open an issue and we will help you out (and write more details here while we help you).

OS X

  1. Open Terminal and type gem install compass.

Ubuntu

  1. Install ruby.
  2. Open Terminal and type gem install compass.

Install NodeJS and Yeoman

Windows

  1. Run the installer from http://nodejs.org/. Add node tools to the PATH if the installer asks.
  2. Open Command Prompt and type npm -g install yo.

OS X

  1. Run the installer from http://nodejs.org/.
  2. Open Terminal and type `npm -g install yo'.

Ubuntu

  1. Install nodejs using apt-get.
  2. Open Terminal and type `npm -g install yo'.

Clone the Repository and Install Dependencies

Windows

Install git using the installer from http://git-scm.com/download/win. Add git to PATH if the installer asks.

All OSes

Run the following commands in Terminal or Command Prompt.

  1. git clone https://github.com/CruGlobal/conf-registration-web.git
  2. cd conf-registration-web
  3. npm install
  4. bower install

Install WebStorm

Install WebStorm from Jetbrains and open it. Import the project from where you cloned it.

Using a local API

  1. Edit apps/scripts/services/httpUrlInterceptor.js
  2. Set config.url as follows, where REST services are available on hostname (and port):
    config.url = 'http://<hostname:port>/crs-http-json-api/rest/' + config.url;

Using the Mock Backend

  1. Add ngMockE2E to the modules included in confRegistrationWebApp (at the top of app.js).
  2. Add scripts/mockHttpBackend.js to index.html.