Our website is built using GatsbyJS, which is a tool for generating static ReactJS sites.
All of the articles are stored as Markdown files in the content folder in the repo.
All images are stored in our S3 bucket named theharvardadvocate
.
brew install awscli
If you have problems check this page.
Ask us for an Access Key and a Secret Key. Once you have them run:
aws configure
on your terminal and follow the prompts to type them in. The region is us-east-1
.
Check if you have NodeJS installed:
which node
If there is no output, you can install NodeJS directly or via a version manager like nvm.
Install the Gatsby CLI.
npm install -g gatsby-cli
git clone https://github.com/<your-github-name>/main-website.git
cd main-website
Run npm install
GATSBY_CONCURRENT_DOWNLOAD=20 gatsby develop
This command may take a while the first time you run it. If it fails try running it again.