Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

guardian/next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

next

Landing page for Guardian Beta users.

To submit an article for review please contact Cantlin Ashrowan.

Local Install Requirements

  • A Mac or Linux pc
  • Installed Node.js (https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager)
  • Installed npm (Node package manager - you quite possibly already have this)
  • Installed Grunt (build tool) sudo npm -g install grunt-cli
  • Installed Ruby >= v1.9.x (on Ubuntu: sudo apt-get install ruby ruby-dev) & bundler (You may already have this installed, but run ruby -v to check version number)
  • Installed Jekyll gem gem install jekyll

Running locally

Assuming you have checked out this project, open a console and change directory into the root of the project.

  • Ensure you have the following twitter variables in your environment, to allow posts to be rendered with embedded tweets:
    • TWITTER_CONSUMER_KEY
    • TWITTER_CONSUMER_SECRET
    • TWITTER_ACCESS_TOKEN
    • TWITTER_ACCESS_TOKEN_SECRET
  • Now get dependecies with sh grunt
  • Then compile the static assets by running grunt from the root of the project
  • Next change into the Jekyll directory cd jekyll
  • Run the Jekyll local server jekyll serve --baseurl (more command line options can be found within the Jekyll docs)
  • Point your web browser of choice to http://localhost:4000/