Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Application used for Angular JS training in Future Processing

Notifications You must be signed in to change notification settings

michaldudak/fp-angular-js-training

Repository files navigation

Angular JS Training

This application is used for Angular JS training in Future Processing.

Setup

To run the project, you need to have node.js installed on your machine. Head over to http://nodejs.org/ to get the latest version.

To install the dependencies, open the console, enter the project's directory and type in npm install. This will fetch the libraries from the NPM repository Then you can start the application by node app.

Running the server

Executing node app will start up the web server on local port 3000. Open your browser and type in http:\localhost:3000 in the address bar to see the site.

Running the tests

Before first run, you need to install the Protractor's Webdriver. To do this, go to node_modules\protractor\bin inside of the project's directory (or node_modules\grunt-protractor-runner\node_modules\protractor\bin, if you are using npm 2.x) and type in node webdriver-manager update.

Protractor depends on Java, so make sure you have JRE installed and available on PATH.

The easiest way to run the tests is to type in grunt test. This task runs both Karma unit tests and Protractor E2E tests (make sure the application server is running before executing E2E tests). You may also run the suites separately: grunt karma:dev starts up the unit tests and grunt protractor:dev launches end to end tests.

The dev configuration uses the console reporter. If you wish to have a XML file with test results, run grunt karma:ci or grunt protractor:ci, respectively. Test results will be available under test/results directory (please note that the tests may fail if this directory does not exist).

What's more, unit tests may also be started in a watch mode. Executing grunt karma:watch starts up Karma and watches for file changes. If either source code or test is changed, all the tests are run immediately.

Additional resources

For a summary of directive communication methods take a look at http://blog.dudak.pl/2014/angular-js-directive-communication-guide-part-1 and http://blog.dudak.pl/2014/angular-js-directive-communication-guide-part-2

About

Application used for Angular JS training in Future Processing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published