Install

Usage

Make a new directory and enter it: mkdir new-project && cd new-project

(Recommended) Create a repo on Github first.

Run generator:

yo striblab: Front-end application. Some of the key questions asked in this process:

Type of project. A standalone embed is a bundled up project without external dependencies meant to be embedded in an article. The CMS integration version changes the way the application gets hosted to work with the Star Tribune CMS and focuses on creating JS, CSS, and other supporting assets.

Google spreadsheet integration. This is for a standalone embed and sets up using a Google Spreadsheet to hold values that are used in the templates. This requires an API connection to Google and asks for the following:

The Google API email address which is something like XXXXXX@XXXXXX.iam.gserviceaccount.com and can be found in the authentication JSON you get in the Google API Console. The environment variable GOOGLE_AUTH_CLIENT_EMAIL will be the default.

The Google API private key address which is something like --BEGIN PRIVATE--XX\\nXX\\nXX--END PRIVATE KEY-- and can be found in the authentication JSON you get in the Google API Console. The environment variable GOOGLE_AUTH_PRIVATE_KEY will be the default.

Your private Google email to assign ownership of the new spreadsheet for. The environment variable GOOGLE_DEFAULT_SPREADSHEET_OWNER will be the default.

Whether or not to include the data analysis template (see below).

yo striblab:data: Just the data analysis template. The main questions for this template are the following: