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.
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.
Navigate to the folder in the command prompt with: cd <path to directory>
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:
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.