This is an attempt to rewrite the code examples of Pedro Teixeira's Node Tuts episodes in CoffeeScript. I am new to node.js and CoffeeScript but this way I am trying to learn the syntax of CoffeeScript while learning node.js.
For folder and filenames I am trying to stick as close as possible to the names used by Pedro Teixeira, although sometimes this is not possible or not up-to-date anymore (e.g. the nodemon-ignore
files which are now called .nodemonignore
).
Also I am using version 1.0.27
of npm and version 0.4.7
of node.js amongst others and several APIs have changed since the original Node Tuts recording. So there might be a few differences in the code. In case I remember those differences, I will put them in the according README.md
of the episode.
As I said, I am new to both of the technologies so please be nice and do not kill me for mistakes or differences ;)
Check out Node Tuts it's great!
Just a few words on the tools that I use.
- Editing: Sublime Text 2
- Syntax Highlighting for CoffeeScript: jashkenas's CoffeeScript TextMate bundle
- UNNECESSARY CoffeeScript compiling & node.js refreshing: An attempt introduced by Pedro Teixeira is the following command:
(coffee --compile --watch .&); nodemon app.js
- NEW Since nodemon does support CoffeeScript monitoring, all you need to do is
nodemon app.coffee
. It is only importand to have a.nodemonignore
file in all of your node.js application folders, otherwise nodemon is only looking for*.js
files (see nodemon issue #32)