coffee-express
Version:
A Template for NodeJs Application using Express, CoffeeScript, Jade, and Stylus.
89 lines (60 loc) • 3.31 kB
text/jade
extends layout
block content
.container
.span4
div.
<a href="http://www.flickr.com/photos/astrapica/2560897976/" title="Uk express... by astrapi, on Flickr"><img src="http://farm4.staticflickr.com/3049/2560897976_48257593b7.jpg" width="100%" height="120px" alt="Uk express..."></a>
a.button(href="https://github.com/twilson63/express-coffee/zipball/v1.3.0") Download
|
a.button(href="https://github.com/twilson63/express-coffee") Source
:markdown
This template was built to make it very easy to get up and going on small little prototypes and weekend projects.
Have questions, or would like to contribute?
* [Post an Issue](https://github.com/twilson63/express-coffee/issues)
* [Submit a pull request](https://github.com/twilson63/express-coffee)
* Follow Us on twitter! [@jackhq](http://twitter.com/jackhq)
.span7
:markdown
The express-coffee template is now upgraded to use node version 0.8.x+ and refined to utilized a few new features to get up and running.
express-coffee template is made to quickly start putting together an application/prototype.
Now you can run cake dev and when every coffee file is changed it will rebuild the app.
Also, it includes supervisor, which will restart you application everytime you change your views or js files.
cake dev
express-coffee template comes ready to go with connect-assets a rails like asset pipeline. You can add your css and js to the assets folder. Then in jade you can reference your assets using a couple of helper methods.
!= css('mycss')
!= js('app')
See [connect-assets](http://github.com/TrevorBurnham/connect-assets) for more information
express-coffee template has switched to jade as the default template language. It seems to be the clear winner and the most mature at this point. The rich featureset of integrating markdown and coffeescript and other helpers is big plus for getting things up fast.
extends layout
block content
.container
.four.columns
:markdown
skeleton is clean and basic and can easily be adjusted.
mocha is an extremely powerful and easy to use testing framework
see [http://visionmedia.github.com/mocha/](http://visionmedia.github.com/mocha/)
describe 'Sample test', ->
it 'should be true', ->
true.should.equal true
to run mocha
cake test
rm -rf .git
git init
echo 'node_modules' >> '.gitignore'
git add .
git commit -am "first commit"
heroku create
git push heroku master
heroku open