Posts by Robert Damphousse

How to Write Middleware for Express.js Apps

Express.js is a lightweight HTTP framework for node.js that allows you to create a variety of applications, from a standard website to a REST API. It gets out of your way with a minimal API that you fill in with your custom needs. The structure of ExpressJS is this: everything is “middleware”. If you’ve built …

Tutorial: Build an App with AngularJS, Node.js, and Stormpath in 15 Minutes

AngularJS is a framework for building front-end (browser) applications, also known as “Single Page Apps” (SPAs), and we think it’s superb! AngularJS makes it very easy to build a complex, responsive application, particularly to put a SPA on top of your API service. And once you have an app up, you want your users to …

Token Based Authentication for Single Page Apps (SPAs)

If you’re confused about token-based authentication: this post is for you. We will cover access tokens, how they differ from session cookies (more on that in this post, and why they make sense for single page applications (SPAs). This article is primarily written for those with a SPA that is backed by a REST API. We’ll pay …

New Year, New UI: Why We Chose Angular.js

We close this year with some thoughts about User Interfaces and why we chose to re-write ours in AngularJS. Two weeks ago Stormpath released our new Angular-based UI and our customers were so excited that they wrote in to thank us for the early Christmas present. Nice! In the spirit of sharing, here is our …

Build an API Service with OAuth2 Authentication, using Restify and Stormpath

Update 5/11/2016:  Developing in Node.js? Try out nJwt, the cleanest JSON Web Token (JWT) library for Node.js developers, built and maintained by Stormpath. Building APIs is a craft; you have you have to balance the integrity of your data model with with the convenience needs of your API consumers. As you build an API, you will …

Hosted Login for Modern Web Apps

It’s no big secret: if you’re not using SaaS products to build your next great app, you’re wasting a lot of time. Seasoned web developers have learned to solve common (i.e. annoying) problems with packaged solutions. If you’re really badass, your latest app is a symphony of amazing services, not a monolithic codebase that suffers …