An interactive template & test harness, set up with commonly used components and example code
npm install
grunt
- Update
cfg/s3.json
grunt deploy
NOTE: Ensure you have AWS credentials setup by either adding them to your ~/.bashrc
or
creating a ~/.aws/credentials
file with the following content:
[default]
aws_access_key_id = <YOUR_ACCESS_KEY_ID>
aws_secret_access_key = <YOUR_SECRET_ACCESS_KEY>
-
Install package using JSPM e.g.
jspm install reqwest
orjspm install github:guardian/iframe-messenger
-
Import package. e.g.
import reqwest from 'reqwest'
orimport reqwest from 'guardian/iframe-messenger'
import someHTML from './text/template.html!text'
import someJSON from './data/data.json!json'
index.html
- Stripped down test harness. Includes frontend fonts and curl for loading boot.js.
immersive.html
- Immersive-style interactive page pulled from theguardian.com