Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.js: Create an Express project using CoffeeScript

When I run express app_name, expressjs creates all the folders and files needed. I'm wondering if there's a way to do the same but instead of creating the app.js in JS, it creates in CoffeeScript.

Thanks

like image 604
donald Avatar asked Sep 02 '11 14:09

donald


2 Answers

Try this: https://github.com/twilson63/express-coffee

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...

like image 117
Jason Miesionczek Avatar answered Oct 09 '22 04:10

Jason Miesionczek


You may want to check out skeleton. I also created frappe, which is similar but tweaked for my taste.

like image 36
David Weldon Avatar answered Oct 09 '22 05:10

David Weldon