This is a base application that uses Express, Mocha, Soda (Selenium), Docco, RequireJS (+ i18n), jQuery, Bootstrap, Backbone, and Less.
** This is not intended to be a framework. This project is just a clean implementation using all of today's bleeding edge web development technologies and practices. **
- Developed in CoffeeScript.
- Every controller/route is RESTful.
- Internationalization (i18n).
- Built with security in mind.
- CSRF protection (even works with continuous AJAX requests).
- XSS protection (with jade).
- Documentation via Docco.
- Unit testing via Mocha.
- Functional testing via Soda (Selenium).
- Bootstrap based.
- Modular front-end and back-end development with RequireJS.
After pulling the master branch, install all the dependencies and go!
npm install -d
Running in production is pretty simple... just run server.js!
While developing, turn on cake dev mode to automatically convert your .coffee files in the "/src" directory into .js files in the "/app" folder.
The application is setup to execute both unit (+supertest) and functional tests. To simply run all of the tests, run the following command in the root of the application:
Before running these tests, don't forget to have selenium running in the background!
To run all functional tests:
To run an individual functional test:
./cake -i index tesFunctional
To run select functional tests:
./cake -i index,i18n tesFunctional
Still under development.
To run all unit tests:
./cake test unit
To run an individual unit test:
./cake test unit routes/foo
To run select unit tests:
./cake test unit routes/foo,routes/i18n