Angular $http service that returns same object
Allows multiple views to bind to the same object
Here's an angular service that exposes a read function. The first time read is called, the service will call an API (using $http) to get some data. The service will convert this data to an object which will be stored in memory. Subsequent read calls will return the object stored in memory. This will avoid multiple API calls to get the . . .
Sending and Receiving Email using Mandrill
This post will show you how your NodeJS app can send and receive emails using Mandrill. It will show you how to setup the emails you send so that when your users reply to those emails, your application can process those replies.
The trick to receive emails is to send the initial email with a unique reply-to email address. That way, . . .
Development Grunt Tasks in a Heroku Production Environment
We ran into a bit of a conflict between Gruntfile.js and package.json. The package.json file defines the npm packages that are used by the application and by Grunt. However, some of the grunt tasks only make sense to run in a development or test environment, but not in a production environment. Our package.json file was able to make this . . .