yoosername / angular-materialize-portal-demo

AngularJS + Materialize simple portal / dashboard demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AngularJS + Materialize simple portal / dashboard demo

This is based on Phonecat tutorial and using ui-router module

Running the app during development

  • Run npm start
  • navigate to http://localhost:8000/app/index.html

##Test information kept from AngularJS phonecat tutorial

Running unit tests

We recommend using [Jasmine][jasmine] and [Karma][karma] for your unit tests/specs, but you are free to use whatever works for you.

  • Start Karma with npm test
    • A browser will start and connect to the Karma server. Chrome is the default browser, others can be captured by loading the same url as the one in Chrome or by changing the test/karma.conf.js file.
  • Karma will sit and watch your application and test JavaScript files. To run or re-run tests just change any of your these files.

End to end testing

We recommend using [Jasmine][jasmine] and [Protractor][protractor] for end-to-end testing.

Requires a webserver that serves the application. See Running the app during development, above.

  • Serve the application: run npm start.
  • In a separate console run the end2end tests: npm run protractor. Protractor will execute the end2end test scripts against the web application itself.
    • The configuration is set up to run the tests on Chrome directly. If you want to run against other browsers then you must install the webDriver, npm run update-webdriver, and modify the configuration at test/protractor-conf.js.

About

AngularJS + Materialize simple portal / dashboard demo


Languages

Language:JavaScript 58.2%Language:CSS 38.2%Language:HTML 3.6%