Public Repository

Last pushed: 2 years ago
Short Description
Run .NET and Node.js code in-process on Windows, MacOS, and Linux
Full Description

Edge.js allows you to run Node.js and .NET code in one process on Windows, OSX, and Linux using desktop CLR, CoreCLR, or Mono. This Docker image contains everything you need to experiment or start building your hybrid applications.

Introduction to Edge.js
Edge.js Documenation

You can call .NET functions from Node.js and Node.js functions from .NET. Edge.js takes care of marshalling data between CLR and V8. Edge.js also reconciles threading models of single threaded V8 and multi-threaded CLR. Edge.js ensures correct lifetime of objects on V8 and CLR heaps. The CLR code can be pre-compiled or specified as C#, F#, Python, or PowerShell source: Edge.js can compile CLR scripts at runtime. Edge can be extended to support other CLR languages or DSLs.

The tjanczuk/edgejs:6.5.1 image is based on Trusty, and contains Node.js 6.3.0, Mono 4.2.4, CoreCLR 1.0.0 Preview 2, and Edge.js 6.5.1. Usage is simple:

> docker run -it tjanczuk/edgejs:6.5.1
> cd samples
> node 101_hello_lambda.js
.NET welcomes Node.js
Docker Pull Command