Skip to content

Kozlo/nerdulo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nerdulo

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.

Links

  1. Production version can be found on http://nerdulo.com
  2. Unit tests can be seeon on http://nerdulo.com/unit_test

Installation

  1. Download the repository
  2. Install npm modules: npm install
  3. Install bower dependencies bower install

Running the app

  1. Run the gulp start task
  • gulp start
  1. Build the code and run the app manually:
  • run the gulp build task: gulp build to simply build the files or gulp 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 or node server.js
  1. View in browser at http://localhost:8080

If you have any questions, please contact Martins at mkozlovskis@gmail.com.

Running Browser Tests With CasperJS

  1. Install prerequisites: PhantomJS 1.9.1 or greater and Python 2.6 or greater
  2. Install CasperJS with the global flag: npm install -g casperjs
  3. Run the server: npm start or node server.js
  4. Run the tests: npm run-script casperjs or casperjs test src/tests/casperjs/tests/

Running Node.js Unit Tests With Mocha and Chai

  1. Install prerequisites: Mocha, Chai, Sinon, Sinon-Chai (included in package.json)
  2. Run the server: npm start or node server.js
  3. Run the tests: npm run-script mocha or mocha src/tests/mocha/*

About

Math game site created in Angular.js with examples of unit test s(both front-end and back-end) and browser tests.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published