This is a single page game application written in Angular.js. The front-end code is thoroughly unit-tested. The application runs Node.js on the server. SASS is used as the CSS pre-processor. Gulp is used for task automation.
- Production version can be found on http://nerdulo.com
- Unit tests can be seeon on http://nerdulo.com/unit_test
- Download the repository
- Install npm modules:
npm install
- Install bower dependencies
bower install
- Run the gulp start task
- gulp start
- Build the code and run the app manually:
- run the gulp build task:
gulp build
to simply build the files orgulp default -env development
to also watch for file changes and automatic re-build, but note that Chrome's livereload plugin is needed for the page to reload automatically - start the server:
npm start
ornode server.js
- View in browser at http://localhost:8080
If you have any questions, please contact Martins at mkozlovskis@gmail.com.
- Install prerequisites: PhantomJS 1.9.1 or greater and Python 2.6 or greater
- Install CasperJS with the global flag:
npm install -g casperjs
- Run the server:
npm start
ornode server.js
- Run the tests:
npm run-script casperjs
orcasperjs test src/tests/casperjs/tests/
- Install prerequisites: Mocha, Chai, Sinon, Sinon-Chai (included in package.json)
- Run the server:
npm start
ornode server.js
- Run the tests:
npm run-script mocha
ormocha src/tests/mocha/*