NPR’s App Template

by @tylrfishr and @jeremybowers

github.com/nprapps/app-template

A brief overview

An opinionated project template for client-side apps.

We use it for everything we do.

Thus, the app template is highly customizable.

Things we made

The guts

Flask

Fabric

Jinja2

Amazon S3

Bootstrap

(LESS)

Whatever else the project needs

Starting a project

Cloning

Bootstrapping

Default GitHub Issues

Initial Project Template

Let's take a look at everything we have.

Spreadsheets!

Publish spreadsheet

Configure app

Import your data

Update copy

Write Jinja templates to interact with the spreadsheet.

One-touch deployment

Cross your fingers

What happened?

Deployment targets are set in app_config.py.

LESS files and JSTs are compiled.

Jinja templates are baked to flat HTML.

All CSS and JS files are minified and compressed into one file.

All assets are gzipped.

Everything is pushed to s3.

We’re live!

apps.npr.org/nicar-rules