In “Enabling a Node.js Server-Side App on Windows Azure,” I introduced the idea of running Node.js withinWindows Azure roles and why you might want to do so. Recent developments have made it easier (and potentially more cost-effective) to host Node.js applications on Windows Azure — by hosting Node.js applications within Windows Azure Websites. A compelling use of Node.js and its lightweight, non-blocking, highly asynchronous HTTP infrastructure is the building of REST APIs. To demonstrate this, the article will discuss how to build a lightweight trace-logging API that can be used from any REST-capable client. This API is built with Node.js and uses the NoSQL MongoDB document-oriented database to store the event log trace entries. In contrast to the previously referenced article, in which we used the Azure SDK to build and deploy the solution to Azure, here I will show how to use WebMatrix 2 to build and deploy the application to Azure Websites.
Tag Archives: NodeJS
From: NodeJS Fan
Automated testing is a great way to improve the quality and speed throughout the development of your code. In this article I’ll explain some of the benefits of automated testing, show you how to add testing to an existing project, write tests, and then write code to make the tests pass. This article is written with the assumption you are familiar with Node.js and Gulp.
How to use MySQL with Node.js
New to Node.js and wondering if you can use your old friend MySQL with it? Good news – it is surprisingly very easy to get MySQL working with Node.js. This article guides you through the process.
First of all, you’ll need to install an aptly named Node.js module called mysql.
I’m relatively new to hardcore Node.js hacking so I’m seeing all sorts of lovely new errors that I have no clue how to solve when I initially see them. To this point I’ve managed to keep a smile on my face while trying to fix these errors, a quality I quite enjoy about myself. One of the recent errors I encountered was with child_process, whereby an error would occur within an execSync command and the entire app would brick; not even a try/catch would save me. I did find a solution, however.
In this post we will show you how to create a text-to-speech module in Node.js using Edge.js. Text to Speech application actually means that you will provide text to the application and it will convert that to a speech. Edge.js connects Node.js and .Net together, where you will actually write the code in C# but it will be ran from Node.js.
If you are not aware of Edge.js, read Write .Net and Node.js code together using Edge.js. Using Edge.js you connect Node.js and .Net on Windows, MacOS, and Linux. You need to at first install Edge before proceeding with the code.