Is there an equivalent of Node.js for .NET developers? - node.js

I'm a .NET developer and would like to use something like Node.js and run it in the Microsoft cloud. Is there an equivalent? I know Microsoft is helping port this over but no sign of when this will happen and I need something in the meantime.

There's a couple of projects under way:
https://github.com/dnewcome/Node.net
https://github.com/Rduerden/Node.cs
I couldn't vouch for their completeness.
I'd also have a read of this post by Ayende, the comments are particularly interesting:
http://ayende.com/blog/72705/node-cs

Why would you need Node.js when .NET has supported event-driven async IO from the very beginning? (Look at the all the .Begin/.End methods in the IO and web request classes).
Furthermore, the explicitly event-driven approach used by Node.js and the .NET APM (Asynchronous Programming Model) will soon be superceded by the async/await keywords in C#. This has the benefit of producing much more readable code.

Actually a port of node to windows is already underway and currently actively worked on. You can already download a windows build of node on the official page. It is however still far from beeing production ready, but you should be able to play around with it.

Try to look at manos and it's manifesto article.

Hi i started the development of a Node.Cs like server with support for .NET MVC Controllers, Razor etc. Just to explain, is based on a system like Node.Js with few threads, without locks and with a queue of couroutines.
PS any suggestion or correction is welcome!
Documentation
MvcMusicStore sample port on Node.Cs
Packages on Nuget

Related

How to develop the backend while working with Flutter

I am pretty new to flutter.I just developed a reminder app.But that was mostly only front-end.But my next project I want to build a meat delivery service app.But this requires me to work on the backed as well.I have been getting pretty vague answers on the backend part of flutter.
Can anyone explain what like how exactly should I go with backend.I know Python for the start.Also you can use dart as well.I am confused.I just want to finish off things in the optiminum period of time.
I think you can use the App Write.io, this project is open-source and free, you can install the server and everything will free for you. Btw: App Write has the Flutter SDK. And this project has much big community
Can you more information from here
firebase is pretty good but you need to have an API. there is no other way to do backend without API. here is the whole documentation about restApi https://medium.com/swlh/restful-api-documentation-made-easy-with-swagger-and-openapi-6df7f26dcad

IBM Natural Language Processing Projects (Beginner getting started question)

I've been digging into the IBM Cloud Services, Watson and NLP. Just installed the CLI and tried with Node SDKs, and a starterkit, unfortunately I did not succeed by trying to get a sample code by default to understand how it works.
After that, I did some research get a better open minded approach to how actually I could use some of their free services to get started, but there's actually to vague information, even though the IBM Docs are pretty extensive and well written, it can get very confusing.
I would appreciate any open source repo, or working/live project that you are willing to share to make a better image in my mind about it IBM cloud services.
A few days ago I wrote a sample application using the Natural Language Understanding service. Check the source code here: https://github.com/watson-developer-cloud/natural-language-understanding-code-pattern
The README has instructions on how to get the apikey which is the way you will use to authenticate your API calls.
Since you are using Node.js you can start with the sample above and also look at this page: https://cloud.ibm.com/apidocs/natural-language-understanding/natural-language-understanding?code=node which includes examples for all the features in Node.js using the node-sdk: https://github.com/watson-developer-cloud/node-sdk/

Steps to use Nodejs modules like assert and paralleljs with Titanium appcelerator

I want to use the assert and paralleljs modules in mobile apps developed with Titanium Appcelerator. If anyone has used these modules or similar to this, please help me to use these too.
Thanks in advance.
That would be great! The problem I think is that javascript (at least at it's current version) isn't multi-threaded. it's built to be event driven - and if you use event driven well, you can get pretty good performance. What paralleljs does is using web-workers which are not available in Titanium.
What you might be able to to is write some kind of webview that will run the work inside it and report back to Titanium.
Take a look at the following:
How to create multithreading in mobile sdk
Titanium Worker Thread Module
You'll have to test it and see if it's memory/performance efficient.

Developing a web app with Mono (opensource .NET) any examples?

I am a Java, Scala, Python web app Linux guy. I want to play around with Mono (particularly F#) for web development.
I am just looking for an example web application written in Mono perhaps in Github (any CLI language is fine). I have tried googling and cannot find a good starting point (or if its even possible).
From what I gather I could sort of combine:
Fast CGI (nginx, lighttpd)
Mono
Spring framework .NET (I can't even tell if it will work on Mono)
Advanced apologies if there is a glaringly obvious resource (web site) that I missed.
(useful site: http://www.tryfsharp.org/Resources/GetMono.aspx)
To get F# dev environment for Mac/Linux setup:
http://www.tryfsharp.org/Resources/GetMono.aspx
For Ubuntu 12.04 specifically:
http://datachomp.com/archives/running-asp-net-mvc4-on-ubuntu-12-04/
To Get Fsharp to work with MonoDevelop 2.6 or greater you have to use one of forks of:
https://github.com/fsharp/fsharpbinding
Nancy looks like a good URL routing option which is all I really need:
https://github.com/NancyFx/Nancy
And for F# Mono stuff for Nancy including Djano templating:
https://github.com/NancyFx/Nancy/wiki/Building-Nancy-on-Mono
You can use the command line NuGet install tool (which is basically like Javascripts npm or Java's maven):
http://nuget.codeplex.com/releases/view/58939
Once I install the Fsharp Powerpack I should have in theory LINQ to use for persistence.
And If Nancy does not work out there appears to be a standard called OWIN (it appears to be analogous to Python's WSGI).
Other OWIN compliant projects: http://owin.org/#projects
UPDATE
Looks like ServiceStack has some good stuff also and seems to be gaining some traction. In terms of Mono you mainly want to look at daemon doc.
Check out XSP (about halfway down this page)
Mono & ASP.NET
And besides WebSharper which Daniel mentioned there's also Bistro.
Hope that helps.

Writing a Web Application in Haxe without Apache and PHP?

Haxe has Apache httpd modules and can compile to PHP code. These are 2 options I know to make a web application that runs on the server. You can start a http server with nekotools, but this is supposed to be used for development only.
Are there any more options?
I can always use the NekoVM from within a C or C++ program, running a web server or interfacing to FastCGI. Or compile to C++, using a FastCGI or web server library. But I want to hear about solutions that are actually used.
I have a VPS with nginx, so no mod_neko or mod_tora. PHP isn't a problem, but I'd rather wouldn't use it (for irrational reasons).
More correctly there is an Apache module for the nekoVM. (You do need necessarily haxe to produce neko binaries)
To your question:
As far as I know there is currently no possibility to use the C++ target for webserver application, but some people are playing arround with some stuff.
As you said, you could use PHP
mod_tora or mod_neko on a Apache setup. (Why not use Apache?)
OR: the probably most interessting thing for you be: Link 1 and Link 2 (neko as cgi / fastcgi)
hxNode uses node.js. Don't know if anybody uses hxNode, but node.js got some good press lately.
I'm continuing to keep hxNode up to date and expanding it with the node.js spec.
I'm using it for my own projects and debugging it as I come across stuff.
Currently, hxNode, has the node.js api defined in Haxe, this is the standard node.js asynchronous API. Also, I've started to recreate the Haxe standard API using this API, so for example, js.FileSystem has been implemented, this makes use of the fact that latest versions of node can call fs module syncronously.
Other things which I'm working on with this API, servlet's sitting on top, and mongo bindings based on chriskv's mongo native drivers.
bd

Resources