Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: gh-pages
Fetching contributors…

Cannot retrieve contributors at this time

178 lines (142 sloc) 5.978 kB
<!doctype html>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Express-coffee by twilson63</title>
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<script src=""></script>
<script src="javascripts/respond.js"></script>
<!--[if lt IE 9]>
<script src="//"></script>
<!--[if lt IE 8]>
<link rel="stylesheet" href="stylesheets/ie.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<div id="header">
<li class="fork"><a href="">View On GitHub</a></li>
<li class="downloads"><a href="">ZIP</a></li>
<li class="downloads"><a href="">TAR</a></li>
<li class="title">DOWNLOADS</li>
</div><!-- end header -->
<div class="wrapper">
<div id="title">
<p>A Template for NodeJs Application using Express, CoffeeScript, Jade, Stylus, Nib</p>
<span class="credits left">Project maintained by <a href="">twilson63</a></span>
<span class="credits right">Hosted on GitHub Pages &mdash; Theme by <a href="!/michigangraham">mattgraham</a></span>
<h1>Express Coffee Template 8 (1.8)</h1>
<p>This is a Node Express CoffeeScript Stack Template</p>
<p>It comes ready to go with connect-assets that give you the option
to use coffee-script and stylus for the client side.</p>
<p>This is a template that can be used to create nodejs applications using </p>
<li>Node v0.8.x</li>
<li>Express v3.0.5</li>
<li>CoffeeScript! v1.5.0</li>
<li>Jade v0.26.0</li>
<li>Stylus v0.27.x </li>
<li>bootstrap-stylus 2.3.1 (not a npm module)</li>
<li>Nib v0.9.0</li>
<li>Connect Assets v2.3.3</li>
<li>MongoDB / Mongoose 3.6.x</li>
<li><a href="">NodeJs</a></li>
<li><a href="">Express</a></li>
<li><a href="">CoffeeScript</a></li>
<li><a href="">Jade</a></li>
<li><a href="">Stylus</a></li>
<li><a href="">bootstrap-stylus</a></li>
<li><a href="">Nib</a></li>
<li><a href="">connect-assets</a></li>
<li><a href="">Mocha</a></li>
<li><a href="">Should.Js</a></li>
<li><a href="">Mongoose</a></li>
<li><a href="">Foundation</a></li>
</ul><p>These will install with npm, just do </p>
<pre><code>npm install
<p>In your project directory.</p>
<hr><h2>Install, Build, Run, Test, and Watch</h2>
<pre><code># Install nodejs and npm
git clone [project-name]
cd [project-name]
npm install
<h2>Install coffee-script, mocha and docco</h2>
<div class="highlight"><pre>npm install coffee-script -g
npm install mocha -g
npm install docco -g
<pre><code>cake dev
<h3>Mocha and Request for testing</h3>
<p>mocha is an extremely powerful and easy to use testing framework</p>
<p>see <a href=""></a></p>
<pre><code>describe 'Sample test', -&gt;
it 'should be true', -&gt;
true.should.equal true
<p>to run mocha</p>
<pre><code>cake test
<h3>Setup to deploy to heroku</h3>
<pre><code>rm -rf .git
git init
echo 'node_modules' &gt;&gt; '.gitignore'
git add .
git commit -am "first commit"
heroku create
git push heroku master
heroku open
<h2>Thanks to</h2>
<a href="">Jeremy Ashkenas</a> for creating coffee-script</li>
<a href="">TJ Holowaychuk</a> for creating express</li>
<a href="">Miško Hevery</a> for creating Jasmine-Node</li>
<a href="">TJ Holowaychuk</a> for creating mocha and should.js</li>
<p>express-coffee is a template or boiler-plate to get started writing
express web applications in CoffeeScript. 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 and run cake test or spec to run your test suite. Create your
jade views in the views folder and put your public assets in the public
folder. Enjoy your express-coffee </p>
<p>See LICENSE</p>
<p>pull requests are welcome</p>
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "' type='text/javascript'%3E%3C/script%3E"));
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-9459466-3");
} catch(err) {}
Jump to Line
Something went wrong with that request. Please try again.