Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Ben Rochon
Ben Rochon
18,996 Points

Node.js

Just wondering is some Node.js courses are on the roadmap.

2 Answers

second this.

Hi Benoit Rochon, our Code Racer app course introduces Node.js.

I'm learning Node.js myself and I can tell you first-hand, we need to get Node.js on the roadmap (it's not).

I'd be happy to use this space as a place to chat about Node.

I started by downloading and installing Node here.

At the bottom of the page you'll notice some simple examples. I used the first one to create a simple server to start:

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');

You just create a JavaScript file with that in it and type node some-file.js in the command line to get the server running. Then you can visit the site at: localhost:1337 in the browser. This is the classic hello world example.

I document the whole experience here.

Hope that helps for now and I'll keep working to get Node on the roadmap!