Skip to content

dailybruin/PRILUSBY

Repository files navigation

PRIME Website

This repository stores the static server code for PRIME's website. The 'public' folder of this project is generated from the build command, and is uploaded to an s3 bucket in order to be hosted.

gatsby-starter-dailybruin

How the Daily Bruin likes using Gatsby. Note this starter combines a couple of other in-house DB tools, like gatsby-source-kerckhoff, which draws from our site manager Kerckhoff, and Lux, our React-based design system.

Overview

What's going on here? Kerckhoff is pulling data from a Google Drive Folder that contains docs written in ArchieML and images and transforming them into parsable JSON via an api. gatsby-source-kerckhoff is then fetching that JSON and makes it available as GraphQL for use in this Gatsby template. In a diagram:

ArchieML  --Kerckhoff-->  JSON ––gatsby-source-kerckhoff--> GraphQL ––gatsby-starter-dailybruin--> HTML

Installation

Make sure you have Yarn the Gatsby CLI installed.

gatsby new <your-project-name> https://github.com/dailybruin/gatsby-starter-dailybruin

Usage

Development

If you haven't already, install yarn.

Install dependencies with:

yarn

To start the development server, run:

yarn start

Then go to localhost:1234!

Deployment

To build:

yarn build