node.js
1 view | +0 today
Follow
Your new post is loading...
Your new post is loading...
Rescooped by zeki893 from JavaScript for Line of Business Applications
Scoop.it!

Implementing RESTFul Services with Node.js and MongoDB

Implementing RESTFul Services with Node.js and MongoDB | node.js | Scoop.it

In my previous post, I shared a new version of the Employee Directory sample application. By default, the application uses an in-memory data store to provide a “download and run” experience (no need to set up a server or a database). In this post, I’ll show how to replace the in-memory data store with RESTful services powered by Node.js, MongoDB and the Express framework.


Via Jan Hesse
more...
No comment yet.
Rescooped by zeki893 from JavaScript for Line of Business Applications
Scoop.it!

How yield will transform Node.js

How yield will transform Node.js | node.js | Scoop.it
Node v0.11.2 was released recently, and with it support for v8 generators. Generators can be hard to grasp, but essentially they’re decorated functions that you can execute multiple times and resume execution at different points inside the function.

What this means in practice is that we can get rid of the callback hell that has plauged node applications, and write code in a synchronous style, while it’s executed asynchronously behind the scenes.


Via Jan Hesse
more...
No comment yet.