Skip to content

Commit

Permalink
feat(coronamap): implements coronamap
Browse files Browse the repository at this point in the history
  • Loading branch information
JayWelsh committed Mar 19, 2020
1 parent 9fb4b3c commit 12a4cb2
Show file tree
Hide file tree
Showing 14 changed files with 23,595 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# dotenv environment variable files
.env*

# gatsby files
.cache/
public

# Mac files
.DS_Store

# Yarn
yarn-error.log
.pnp/
.pnp.js
# Yarn Integrity file
.yarn-integrity
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## 🇿🇦 Coronavirus Map

Thanks to the [Data Science for Social Impact](https://dsfsi.github.io/) group for collecting the data powering [coronamap](https://coronamap.co.za) and for making it publicly available via their [covid19za](https://github.com/dsfsi/covid19za) repository.

# Installation

npm install
npm run start

You may need to install gatsby-cli globally:

npm install -g gatsby-cli

52 changes: 52 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
module.exports = {
siteMetadata: {
title: `coronamap`,
description: `Provincial Coronavirus Distribution Map of South Africa`,
author: `@JayWelsh`,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `coronamap`,
short_name: `coronamap`,
start_url: `/`,
background_color: `#232323`,
theme_color: `#0c0715`,
display: `standalone`,
icon: `src/images/favicon.png`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-s3`,
options: {
bucketName: "coronamap.co.za",
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
{
resolve: `gatsby-plugin-offline`,
options: {
precachePages: [`/*`],
},
},
{
resolve: 'gatsby-plugin-react-leaflet',
options: {
linkStyles: true // (default: true) Enable/disable loading stylesheets via CDN
}
}
],
}
Loading

0 comments on commit 12a4cb2

Please sign in to comment.