Category: middleware

How to Build a NASA Photo Gallery with Zend Expressive

This article was peer reviewed by Abdul Malik Ikhsan and Matthew Weier O’Phinney. Thanks to all of SitePoint’s peer reviewers for making SitePoint content the best it can be!In this article, we are going to use Zend Expressive to build a photo gallery using the NASA Astronomy Picture of the Day API. The end resul...

5 Easy Performance Tweaks for Node.js Express

Node.js has revolutionized web development and the Express framework must share much of the credit. Express may not be the fastest or most advanced server option, but it’s almost certainly the most-used with more than 3 million downloads per month. If you do nothing, Node.js and Express run blazingly fast. Howeve...

From Request to Response: A Journey into Drupal 8 Internals

In the first article on Drupal 8 module development we looked a bit at the routing aspect of this process. We’ve seen that creating pages with paths is now a matter of declaring routes that match up with controllers. The latter, as we’ve seen, can return a render array that gets interpreted into markup and displaye...

Getting started with Connect

If you need to write modular and reusable comments, Connect could be the best solution for you. It deals with an extensible HTTP server framework for Node.js using “plugins” known as middleware. A middleware component is a plugin that gets a request and then does some processing, after which it might handle and end...