Giter VIP home page Giter VIP logo

targeted-political-advertising's Introduction

Guardian interactive ES6 template

An interactive template & test harness, set up with commonly used components and example code

Usage

Setup

npm install

Development

npm start

Production / deployment

  1. Update cfg/s3.json
  2. 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>

Using third party js

  1. Install package using JSPM e.g.

    jspm install reqwest or

    jspm install github:guardian/iframe-messenger

  2. Import package. e.g.

    import reqwest from 'reqwest' or

    import reqwest from 'guardian/iframe-messenger'

Text/JSON in javascript

import someHTML from './text/template.html!text'
import someJSON from './data/data.json!json'

Test Harness

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

targeted-political-advertising's People

Watchers

Federico Fasce avatar Mariot Chauvin avatar Alvin Chang avatar Rohan Spencer avatar James Cloos avatar Garry Blight avatar Apple C.Fardel avatar Andrew Witherspoon avatar Sam Morris avatar ZU W avatar Usama Dar avatar Andy Ball avatar Josh Holder avatar Peter Andringa avatar Pablo Gutierrez avatar Trent Nixon avatar Chris Fenn avatar Paul Torpey avatar Frank Hulley-Jones avatar Sam O'Neill avatar Ashley Kirk avatar David Blood avatar Antonio Voce avatar Rashida avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.