Iris Classon
Iris Classon - In Love with Code

(Video) Learn EdgeJS part 2: Get started with Hello World and compression

Find all the links for the tutorial parts here

Welcome to part two of the Edge.js series! It’s time to get started and get up and running!

First thing you need to do is to download Node, which you can do here.

Install it by following the guide, no tweaking needed.

After you have done that, go ahead and create a folder and create a file in that folder where you test out some node and .net stuff.

 

You can either use some of the samples from the Edge.js github page, or follow along what I am doing. The repo for what I’m doing is here

Navigate to the folder in the command prompt with: cd

After you have done that open Node command prompt and install edge with: npm install edge

When that has finished you can run the js file with the command:

Node <file.js>

And that’s it! You have a first hello world.

To do second example with compression take a look at the video or the my repo on GitHub

Here is how it would look like in C# without error handling:

And how we can do it in node with edge.js

#r lets us load additional assemblies that are not made available by Edge, and we are creating a new task to avoid blocking the thread.

 

 

 

 

 

 

Comments

Leave a comment below, or by email.
Steve W
6/12/2014 1:31:54 PM
Great intro, thanks. One aspect of edge.js which seems really powerful is being able to import your own assemblies into Node and calling them from there. Interesting stuff :)

Steve 
Iris Classon
6/12/2014 1:48:50 PM
Reply to: Steve W
Yup! And thank you! 


Last modified on 2014-06-12

comments powered by Disqus