Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.45 KB

README.md

File metadata and controls

40 lines (25 loc) · 1.45 KB

Star Tribune: How popular is your name? (2023)

Most recent version of the annual Star Tribune baby name lookup using SSA data, rebuilt into a newer workflow.

Starting a project

To start a new project based on this template, run

npx degit striblab/strib-svelte-vite-template#main name-of-your-new-project
cd name-of-your-new-project
npm install

Development

To run the dev server run npm run dev.

To build for deployment, run npm run build.

Strib webfonts

The licenses for the webfonts used on the Star Tribune mean they can only be served from startribune.com URLs, meaning they are blocked from localhost while you are developing. To get around this, the template app serves the fonts from the public/ directory. That means you need a strib-webfonts/ folder with all the relevant font files inside the public/, which you can get from someone who already has them.

Deploying

Deployment is currently handled by a shell script (strib-deploy.sh) that has two dependencies:

AWS CLI with properly configured credentials for the static.startribune.com bucket using the 'default' profile.

jq, which can be installed on a Mac via Homebrew:

brew install jq

To deploy to staging, run npm run deploy-staging. For production, run npm run deploy-production. This will upload to a typical path using your project's name, which is read from package.json.