Skip to content

XVincentX/pollsApiClient

Repository files navigation

pollsApiClient

PollsApiClient made in AngularJs.

Deploy to Azure Deploy

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.

Installation instructions

  1. Install jspm

npm install -g jspm

  1. Install npm dependencies

npm install

  1. Restore jspm packages

jspm install

  1. Run the fake server with npm start

npm start

  1. Browse to http://localhost:3000 and have fun

Testing

Circle CI Sauce Test Status

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.

Deploy

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.

About

PollsApiClient made in AngularJs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published