18 6 / 2012
Nodester Runs CoffeeScript!
Thanks to @_AlejandroMG and Jeremy Zevin, Nodester now runs CoffeeScript apps right out-of-the-box ( for files ending in .coffee)! Here’s a step-by-step example of how to get started with running your existing CoffeeScript application on Nodester.
Let’s start with the following hello world app written in CoffeeScript. Let’s save it to server.coffee
http = require 'http'
http.createServer (req, res) ->
res.writeHead 200, 'Content-Type': 'text/plain'
res.end 'Hello, World!'
.listen 8000
console.log 'Server running at http://127.0.0.1:8000/'
Run the following Nodester commands to setup this app in the cloud:
nodester app create coffeescripttest server.coffee
nodester app info coffeescripttest
Now we have an app created in the Nodester cloud and now we know it’s git repository and production port. Let’s update our code to change the port from 8000 to your new Nodester production port and let’s finish setting up our local git repo and remote by running the following commands in your new app’s directory:
git init
git add .
git commit -m “initial checkin”
git remote add nodester {your repo URL from running the nodester app info command}
git push nodester master
That’s all there is to it! Now direct your browser to http://coffeescripttest.nodester.com to see your new CoffeeScript application running on Nodester live!
Hack the Planet!
Team Nodester \m/