Answer the question
In order to leave comments, you need to log in
Coffeescript in expressjs app!?
Where is the right place to put *.coffee files that are translated into *.js ?
What is a convenient application structure so as not to get confused in the future?
Answer the question
In order to leave comments, you need to log in
For files that work on the server, there is no need to translate them into js manually at all, node.js can do it itself. All you need to do to run the application is something like this file:
#!/usr/bin/env node
CoffeeScript = require("coffee-script");
CoffeeScript.register();
create_app = require("../app/application");
app = create_app();
app.listen(5000);
console.log("Application running on http://localhost:5000/");
console.log("(" + process.env.NODE_ENV + " mode)");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question