cupofdata.com
The code base for the primary Cup of Data website.
Technical Decisions
- We use the GatsbyJs static site generator.
- Content (text, blog posts, etc.) are managed via the Netlify CMS admin panel as Markdown files.
- The site is hosted on Netlify. Merges/pushes to master are automatically deployed. Pull requests against master will be built as deploy previews.
Development
- Fork this repo
- Clone the repo and
cd
into the repo directory - Run
yarn
to install dependencies - Run
gatsby develop
to start a local server
Production
- Add this repository to
Deploy Settings
- Add
gatsby build
as build command - Specify
public
asPublish directory
- Add
master
asProduction branch
Environment Variables
Variable Name | Required | Default Value | Description |
---|---|---|---|
GATSBY_ONBOARD_URL |
Yes | null |
URL for the onboarding content. |
GATSBY_BETAFORM_URL |
Yes | null |
URL for the beta campaign. |
SEGMENT_PROD_WRITE_KEY |
No | null |
Segment API key for production. |
SEGMENT_DEV_WRITE_KEY |
No | null |
Segment API key for development. |
Copyright
Copyright © 2018 Cup of Data. All rights reserved.
MIT licensed.