Coder Social home page Coder Social logo

fp-angular-js-training's Introduction

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

fp-angular-js-training's People

Contributors

michaldudak avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fp-angular-js-training's Issues

Bower for dependencies

It's very good training. I have one question, why not use bower for dependencies? I mean you are using npm already so using bower should be handy also.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.