/angular-express-ejs-seed

Modify AngularSeed

Primary LanguageJavaScript

angular-express-ejs-seed — modify the seed for AngularJS apps

This repository adds expressjs (ejs) to AngularSeed. Of course, Testacular can be used.

How to use angular-express-ejs-seed

Clone the angular-seed repository and start hacking

Running the app during development

You can pick one of these options:

  • serve this repository with your webserver
  • install node.js and run node app

Then navigate your browser to http://localhost:3000 to see the app running in your browser.

Running unit tests

We recommend using jasmine and Testacular for your unit tests/specs, but you are free to use whatever works for you.

Requires node.js, Testacular (sudo npm install -g testacular) and a local or remote browser.

  • start scripts/test.sh (on windows: scripts\test.bat)
    • a browser will start and connect to the Testacular server (Chrome is default browser, others can be captured by loading the same url as the one in Chrome or by changing the config/testacular.conf.js file)
  • to run or re-run tests just change any of your source or test javascript files

End to end testing

Angular ships with a baked-in end-to-end test runner that understands angular, your app and allows you to write your tests with jasmine-like BDD syntax.

Requires a webserver, node app

Check out the end-to-end runner's documentation for more info.

  • create your end-to-end tests in test/e2e/scenarios.js
  • serve your project directory with your http/backend server or node.js + scripts/web-server.js
  • to run do one of:
    • open http://localhost:port/test/e2e/runner.html in your browser
    • run the tests from console with Testacular via scripts/e2e-test.sh or script/e2e-test.bat