Starting server coded in CoffeeScript

23 views
Skip to first unread message

Lim Jiew Meng

unread,
Jun 10, 2012, 7:11:09 AM6/10/12
to node...@googlegroups.com
I found that its possible to start a server on my local machine using

coffee server.coffee

So is it possible to configure Nodester to do the same? 

-----------------

As a next step, I want to develop my app using CoffeeScript & Stylus (CSS) with the help of Connect-Assets

Alejandro Morales Gámez

unread,
Jun 10, 2012, 11:41:52 AM6/10/12
to node...@googlegroups.com
yes it's possible! Just name your init file with *.coffee extension and nodester will pick up  your file!

But I'll rather do this instead:

// server.js

require('coffee-script');
require('./myserver.coffee');

So in this case I can choose the node-version that'll run with my proccess. In the first option, i'm not sure if coffee command will understand what node-version to use.

/be
Reply all
Reply to author
Forward
0 new messages