Sign inSign up

chxj1992/angular-skeleton

By chxj1992

•Updated over 11 years ago

Image
0

292

chxj1992/angular-skeleton repository overview

⁠angular-skeleton

Build Status

A skeleton project of angularjs with requirejs, and there's also an example to setup karma test with angular & requirejs.

You can see a demo⁠ here.

⁠Getting Started

There are two options to run this project:

  • locally (require: Nodejs⁠ installed):

      npm start
    
  • in docker (require: Docker⁠ installed):

      docker build -t angular-skeleton .
      docker run -d -p 8000:8000 angular-skeleton:latest
    

Then open your browser and visit http://localhost:8000

⁠Unit test
npm test
// or only run test once
npm test-single-run

All tests are written in jasmine⁠.

⁠E2E test
npm start
npm run protractor

Learn more about Protractor⁠.

⁠Problems Shooting
  • If you see cannot run in wd when you run the above commands, just try this instead:

    npm start --unsafe-perm

  • protractor is going to download the chrome webdriver from google storage⁠ at the first time. If you are not able to access google, you have to setup a proxy before you run npm run protractor. Or you can manually download the webdriver from some where else and save it to node_modules/protractor/selenium/.

Tag summary

Content type

Image

Digest

sha256:5fe119260…

Size

-

Last updated

almost 11 years ago

docker pull chxj1992/angular-skeleton