An interactive template & test harness, set up with commonly used components and example code
- Install nvm to manage multiple versions of node.
- Switch node version
nvm use
- Install dependancies
npm install
If you haven't switched node version yet, run nvm use
. Then start the server npm start
.
- Get Interactives S3 credentials from Janus
grunt deploy
-
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