Phillip Smith
coding

Recipes for delicious tasting static news apps

Never bake again, go the raw route!

(Scroll down to continue reading)

The following is adapted from a session idea submitted to SRCCON.

The “iron triangle” of the ideal news app could be described as: scalable, fast, and cheap. As the saying goes “pick two.”  

News apps should be inexpensive to deploy, respond quickly to user interaction, and scale to handle large volumes of traffic. However, trade-offs make it hard to achieve news app nirvana.  

In the past, news app teams have developed specialized tools to “bake out” their dynamic, database-driven applications or have gone down the path of learning the ins-and-outs of the latest-and-greatest caching technology – oh, the horror!

Fear not, dear reader, there is a way to have the dream of scalable, fast, and cheap: the static news app!

NPR and others have been making impressive headway on static apps over the last couple of years: For example, the NPR Visuals team has developed a “opinionated project template for client-side apps” and  the News Apps team at the Chicago Tribune developed a “very simple content management system” called Tarbell. Both result in apps that consist of a nice simple, static “stack” that uses – almost exclusively – just HTML, CSS, and JavaScript to deliver the final news app experience, i.e., Look Ma No Database!

The question remains, is there room to take these ideas further, while at the same time aiming to simplify, simplify, simplify? And, with so many “static site generators” already out there, is it always necessary to develop something new and specific to the needs of your newsroom?

The answer is a definite maybe.

Over the next few posts, I’m hoping to explore:

  • The magic behind some of the existing static news app tools and templates
  • A list of the “minimum viable ingredients” that are typically necessary to make your own static news app architecture
  • Guiding principles to think about when making the buy vs. borrow vs. build decision

More technically, I’ll try to dig into the common architectural patterns that static news apps will need to consider. For example:

  • Everything is a service: thinking about design of static apps & data wrangling
  • Preprocessors, build tools, generators, scaffolding, etc. 
  • Back-end services & options for client-side storage 
  • Authentication & authorization in a static app: Dave Winer’s developed a great example recently that I’d like to look at.
  • Error handling, logging, and notifications
  • CORS, CSRF, XSS and other security concerns for static apps  

Ideally, you’ll arrive here a baker, and leave a sushi chef!   

If you have experience with building scalable, fast, and cheap static news apps, please subscribe to the comments below (I’ll pop a note there as new post go up) and leave a note with your thoughts (or drop me a line on Twitter).

About

Hi, I'm Phillip Smith, a veteran digital publishing consultant, online advocacy specialist, and strategic convener. If you enjoyed reading this, find me on Twitter and I'll keep you updated.

Related

Want to launch a local news business? Apply now for the journalism entrepreneurship boot camp

I’m excited to announce that applications are now open again for the journalism entrepreneurship boot camp. And I’m even more excited to ...… Continue reading