Coffee Express Template
This is a template for getting started writing Express.js application in CoffeeScript, Jade, and Stylus, for both server app and client assets.
It comes ready to go with base setup for an Express Web App.
It includes a
Cakefile that lets you build, spec,
and watch your CoffeeScript as you develop.
You hack in the
src folder and run
cake build to build you server files,
write your mocha in your test folder
cake test or
cake spec to run your test suite.
Create your Jade views in the
and put your public assets in the
It folks twilson63/express-coffee with mongodb dependencies removed.
This is a template that can be used to create nodejs applications using
- NodeJs v4.2
- Express v4.13
- CoffeeScript v1.10
- Jade v1.11
- Stylus v0.52
- bootstrap-stylus v2.3.1 (not a npm module)
- Nib v1.1
- connect-assets v2.5
These will install with npm, just do
git clone http://github.com/pengkui/coffee-express.git [project-name] cd [project-name] npm install
Install coffee-script, mocha and docco
npm install coffee-script -g npm install mocha -g npm install docco -g
Mocha and Request for testing
Mocha is an extremely powerful and easy to use testing framework
describe 'Sample test', -> it 'should be true', -> true.should.equal true
To run mocha
Setup to deploy to heroku
rm -rf .git git init echo 'node_modules' >> '.gitignore' git add . git commit -am "first commit" heroku create git push heroku master heroku open
Pull requests are welcome.