Skip to content

UHCodeRED/CodeRED-Fall-App-FE

Repository files navigation

code-red-front-end

This project is generated with yo angular generator version 0.11.1.

Prerequisites

Make sure you have installed all of the following prerequisites on your development machine:

  • Node.js - Download & Install Node.js and the npm package manager. If you encounter any problems, you can also use this GitHub Gist to install Node.js.
  • MongoDB - Download & Install MongoDB, and make sure it's running on the default port (27017).
  • Bower - You're going to use the Bower Package Manager to manage your front-end packages. Make sure you've installed Node.js and npm first, then install bower globally using npm:
$ npm install -g bower
  • Grunt - You're going to use the Grunt Task Runner to automate your development process. Make sure you've installed Node.js and npm first, then install grunt globally using npm:
$ npm install -g grunt-cli

Install dependencies

Install npm dependencies

$ npm install

Install bower dependencies

$ bower install

##Setup go to app/scripts/app.js and update the CodeREDServerURL factory. Simply update serverURL to the necessary URL.

  .factory('CodeREDServerURL', function(){
    var serverURL = 'http://localhost:3000';
    return serverURL + '/attendees/:attendeeId';
  });

Build & development

Run grunt for building and grunt serve for preview.

Testing

Running grunt test will run the unit tests with karma.

Production

Run grunt build and all code will be moved to dist/ folder.