Giter Club home page Giter Club logo

ng6-todomvc-starter's Introduction

NG6-starter TodoMVC Example

This application is example of how you can write your angular applications using NG6-starter as your starting point. Currently this example provides you:

  • Example of small-sized application
  • UI components examples
  • Service example which includes unit tests
  • Unit tests for controllers of UI components
  • Browser-driven end-to-end tests

But there is still some things that should be done:

  • Improve test coverage

If you have some other ideas of how improve this example, or you have questions, please welcome to our issue tracker.

Learning AngularJS

Official AngularJS website is good place to start, but it lacks of best practices and not provides you base concepts, which could simplify your life. There is some links that can help you better understand how to write maintainable applications using AngularJS.

If you have any others helpful links to share, or find any of the links above no longer work, please let us know.

Unit testing

The app uses Karma to run the unit tests, which you can find near the test target (*.spec.js files).

End-to-end testing

The app uses Protractor, an end-to-end test framework designed for AngularJS apps, to the end-to-end tests, which you can find in the e2e folder.

Setup development environment for running end-to-end tests

The app uses Protractor from the command line, so first please install it globally:

npm install -g protractor

It installs two command line tools, protractor and webdriver-manager, and you can use the protractor --version command to verify the installation.

Next, download the necessary binaries for Selenium Server:

webdriver-manager update

Finally, start Selenium Server:

webdriver-manager start

It will start Selenium Server on port 4444.

Running end-to-end tests

First, start the Selenium Server, and keep it running:

webdriver-manager start

Next, open another command prompt, and start the NG6-starter TodoMVC Example application, and keep it running:

gulp serve

Finally, open yet another command prompt, and execute the end-to-end tests:

npm run test:e2e

Enjoy the report :)

ng6-todomvc-starter's People

Contributors

fesor avatar balassy avatar dmitriz avatar dmitry-prohorov avatar lurraca avatar

Watchers

James Cloos avatar

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.