Landing page for Guardian Beta users.
To submit an article for review please contact Cantlin Ashrowan.
- 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 runruby -vto check version number) - Installed Jekyll gem
gem install jekyll
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
gruntfrom 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/