Meteor applications with NGINX
Meteor is a full-stack, JavaScript driven framework designed to rapidly build cross-platform applications. It is integrated with the in-house designed Distributed Data Protocol (DDP) and allows for seamless data synchronization to clients; it also includes an inbuilt MongoDB data store.

Getting ready
This recipe is based on Meteor 1.3 using a basic application with the Blaze templating engine.
How to do it...
As Meteor has an inbuilt server, we need to ensure this is running first:
meteor run
This will start the Meteor proxy, start MongoDB, and then build the application. By default, it'll listen on port 3000
of your localhost. For a production system, you'll want to implement a proper init script to start this when the server boots. Third-party packages such as Meteor-Up can make this easy to do.
Like the previous recipes, we're using a separate NGINX server configuration file, for example, /etc/nginx/conf.d/meteor.conf
:
server { listen 80; server_name...