Skip to content

A memorial to those that have lost their lives fighting the COVID-19 pandemic.

License

Notifications You must be signed in to change notification settings

natetharp/covid-heroes

Repository files navigation

Covid Heroes

A memorial to those that have lost their lives fighting the COVID-19 pandemic.


Data Resources

Alternate Data Types

Former Data Resources


Running code locally

After cloning the repo, navigate to the correct folder and install Jekyll, and any necessary dependencies.

Installation

Jekyll is a Ruby program so you need to install Ruby on your machine to begin with. Head over to the install guide and follow the instructions for your operating system.

With Ruby setup you can install Jekyll by running the following in your terminal:

gem install jekyll bundler

To create a new Gemfile to list your project’s dependencies run:

bundle init

Now edit the Gemfile and add jekyll as a dependency:

gem "jekyll"

Finally run bundle to install jekyll for your project.

You can now prefix all jekyll commands listed in this tutorial with bundle exec to make sure you use the jekyll version defined in your Gemfile.

The Airtable importer requires Node.js. Install Node using NVM.

Build

Jekyll is a static site generator so we need Jekyll to build the site before we can view it. There are two commands you can run in the root of your site to build it:

  • jekyll build - Builds the site and outputs a static site to a directory called _site.
  • jekyll serve - Does the same thing except it rebuilds any time you make a change and runs a local web server at http://localhost:4000.

When you’re developing a site you’ll use jekyll serve as it updates with any changes you make.

Run jekyll serve and go to http://localhost:4000 in your browser.

Notes

  • The build will fail unless the /_data/active.json file already exists and has at least one record in it. The Airtable import script can overwrite the file, but cannot create it.
  • At current, the site appears to need the build process to run twice before new profiles are added to the active.json file and then be built into individual pages.

About

A memorial to those that have lost their lives fighting the COVID-19 pandemic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published