This site is my tutorials, rantings and musings on software development, with a focus on JavaScript, Ember.js, Vue.js and Node.js.

17 Jun 2014

NodeSchool.IO Tutorial Hello World

I've been working with Node for the last year on various side projects. I've grown very fond of it. In that process I've gone through a lot of tutorials. One of my favorites is from nodeschool.io. This site offers lessons on how to get started using Node. The nice thing is that you run the examples through the command line. You download an NPM module that you can run to do the tutorials. Here's is how I set it up.

Setup

First you have to download the module

sudo npm install -g learnyounode
learnyounode

That simple. After running you should see this screen.

Choose the tutorial and get started.

HELLO WORLD

First tutorial is to write "HELLO WORLD" to the console. Easy enough. I fired up my trusty vi and I wrote a quick hello world program in helloworld.js.

console.log("HELLO WORLD");

Then I ran a command to verify it.

learnyounode verify helloworld.js

Success!

That's all there is to it. As time goes on I'll be going through more of these tutorials for fun.

Are you a software developer?

Join me and receive a FREE Ember testing cheat sheet and a FREE Aurelia getting started cheat sheet. As well as advice and information on the latest in Node.js, Ember CLI and JavaScript.