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.
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
npm test
// or only run test once
npm test-single-run
All tests are written in jasmine.
npm start
npm run protractor
Learn more about Protractor.
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/.
Content type
Image
Digest
sha256:5fe119260…
Size
-
Last updated
almost 11 years ago
docker pull chxj1992/angular-skeleton