GithubHelp home page GithubHelp logo

sirithink / express-coffee Goto Github PK

View Code? Open in Web Editor NEW

This project forked from twilson63/express-coffee

0.0 2.0 0.0 1.7 MB

A Template for NodeJs Application using Express, CoffeeScript, Jade, Stylus, Nib

Home Page: http://twilson63.github.io/express-coffee

License: MIT License

express-coffee's Introduction

Express Coffee Template 8 (1.8.1)

This is a Node Express CoffeeScript Stack Template

It comes ready to go with connect-assets that give you the option to use coffee-script and stylus for the client side.

Technologies

This is a template that can be used to create nodejs applications using

  • Node v0.10.x
  • Express v3.2.x
  • CoffeeScript v1.6.x
  • Jade v0.30.0
  • Stylus v0.32.x
  • bootstrap-stylus 2.3.1 (not a npm module)
  • Nib v0.9.x
  • Connect Assets v2.4.x
  • MongoDB / Mongoose 3.6.x

Requirements

These will install with npm, just do

npm install

In your project directory.


Install, Build, Run, Test, and Watch

# Install nodejs and npm

git clone http://github.com/twilson63/express-coffee.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

Run

cake dev

Mocha and Request for testing

mocha is an extremely powerful and easy to use testing framework

see http://visionmedia.github.com/mocha/

describe 'Sample test', ->
  it 'should be true', ->
    true.should.equal true

to run mocha

cake test

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

Thanks to

About

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

License

See LICENSE

Contribute

pull requests are welcome

express-coffee's People

Contributors

adrienbrault avatar baloo avatar bratsche avatar bsodmike avatar chagel avatar chieffancypants avatar craigulliott avatar darvin avatar fern4lvarez avatar jgable avatar jgannonjr avatar jkatsnelson avatar jorritposthuma avatar jpillora avatar rafe avatar skw avatar spadin avatar zacheryph avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.