PollsApiClient made in AngularJs.
A simple hypermedia enabled application on top of Polls Api by Apiary.
Want to know more? Read the blog post serie
Want a mobile version? I developed one as well using react-native.
- Install jspm
npm install -g jspm
- Install npm dependencies
npm install
- Restore jspm packages
jspm install
- Run the fake server with npm start
npm start
- Browse to http://localhost:3000 and have fun
We use karma as test runner (unit test), protractor for E2E tests, and mocha as general testing framework.
All the stuff gets transpiled using karma-jspm, no minification and bundling gets executed.
Run front end tests: (karma)
npm run frontendtests
Run e2e tests: (protractor)
npm run e2etests
Run all the tests: (karma + protractor)
npm test
NOTE: protractor does not work very well with Mocha, so jasmine is used in place for e2e tests. E2E tests run on SauceLabs and they are publicly accessible.
Each time a new commit is done in the master branch, a trigger will be launched. Then the application will be deployed to Azure at http://pollsapiclient.azurewebsites.net and on Heroku at http://pollsapiclient.herokuapp.com as well.
The deploy script is a postinstall
npm script that will run only if NODE_ENV
is set to production. Therefore, jspm is required as a production dependency.