Single Page Applications & Cloud
55 views | +0 today
Follow
Your new post is loading...
Your new post is loading...
Rescooped by Brian Weber from JavaScript for Line of Business Applications
Scoop.it!

Node JS Seamless Deploy

Node JS Seamless Deploy | Single Page Applications & Cloud | Scoop.it

Those coming in from the Ruby world are probably well familiar with Unicorn. You start a few workers, you update your code, send a USR2 signal to the master process and boom a new set of workers are running with the new code.

Node JS makes this a little more painful, but there is a very nice solution to it - Naught. https://github.com/superjoe30/naught

We have been using Naught in production for a while now, it gives us a very clean deploy with Zero down and happy users.

I've created a simple Template repository -https://github.com/AvnerCohen/node_template

It includes a stack of best-of-breed node.js modules of what we've found to be stable and performant on top of express for a production service node service.


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

Using Mongoose ODM to Connect to MongoDB In Your Node.js Application

Using Mongoose ODM to Connect to MongoDB In Your Node.js Application | Single Page Applications & Cloud | Scoop.it

Mongoose ODM simplifies the process of connecting to your MongoDB database in your Node.js application and working with the data.

If you are a JavaScript developer, using MongoDB as your backend database is a joy. If for no other reason, you get to think of and interact with data as JSON objects. This serves to solidify the case for Node.js: those of us who live and breathe JavaScript on the client side, can now extend our skill set to include server-side development using the language we love.

The quickest way to get up and running with MongoDB in your Node.js application is to leverage Mongoose ODM. The Mongoose website defines it as a : “…straightforward, schema-based solution to modeling your application data…”. That’s a little deep for me. Suffice it to say, it makes interacting with MongoDB incredibly simple.

In this article, our goal is extremely simple: connect to MongoDB, create a record and then show that record in a web page. While we will barely scratch the surface of what is possible, we will, at minimum, accomplish our modest goal. I’m sure that, as a programmer, you’ll get halfway through this code and realize how much more is possible. You can then take this very basic code, copy and paste it into your own application and then build a more robust solution.


Via Jan Hesse
more...
No comment yet.
Scooped by Brian Weber
Scoop.it!

Node.js boosts load balancing, adds to API ahead of 1.0 release - InfoWorld

Node.js boosts load balancing, adds to API ahead of 1.0 release - InfoWorld | Single Page Applications & Cloud | Scoop.it
Node.js boosts load balancing, adds to API ahead of 1.0 release InfoWorld Node.js, the popular implementation of JavaScript that takes it outside of a browser and into servers, is being fitted with load balancing and API improvements as a precursor...
more...
No comment yet.
Rescooped by Brian Weber from JavaScript for Line of Business Applications
Scoop.it!

Build a real-time polls application with Node.js, Express, AngularJS, and MongoDB

Build a real-time polls application with Node.js, Express, AngularJS, and MongoDB | Single Page Applications & Cloud | Scoop.it
Build a polling application that updates in real-time as votes roll in. The app I created has a simple architecture that uses JavaScript for everything. Node.js and Express power the back-end, and MongoDB stores the app's data.

I chose to use JazzHub to manage the source code for my project. Not only does it give me a full version control system for my code, but it also has an online IDE for editing my code in the cloud, and abundant agile features for project management. JazzHub also integrates easily with Eclipse, which has plug-ins to enable one-click deployment to platforms like BlueMix or Cloud Foundry.


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

Handling Oauth2 with Node.js and Angular.js – Passport to the rescue!

Handling Oauth2 with Node.js and Angular.js – Passport to the rescue! | Single Page Applications & Cloud | Scoop.it

I’ve recently been working on a small application in AngularJS which will be eventually destined for mobile platforms. Now, I’ve been wanting to get a decent log-in flow for Node happening for a while now; it’s the kind of boilerplate I’m likely to use in a lot of different things. And of course, I want to be able to use the OAuth2 log-in services provided by Facebook, Google et al. A lot of my previous experiments with node and/or angular didn’t require this, and as I try to be prudent with my time it’s always been on the back burner. Until now, that is…


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

NodeCloud - Node.js resources

NodeCloud - Node.js resources | Single Page Applications & Cloud | Scoop.it

NodeCloud is a resource directory gathering sites related to Node.js and ordering them by their Alexa traffic, allowing to evaluate relative popularity of a project.

Please note that for the ranking to be relevant, only sites fully dedicated to Node.js and hosted on their own domain (Alexa do not provide separate rankings for subdomains) can be indexed.


Via Jan Hesse
more...
No comment yet.