amp-client

JS Client for 68publishers/amp

Usage no npm install needed!

<script type="module">
  import ampClient from 'https://cdn.skypack.dev/amp-client';
</script>

README

AMP Client JS

Advertising Management Platform Client

Table of Contents

Getting Started

Please follow these instructions to get a local copy and setting up it.

Prerequisites

  • Git
  • Npm

Installation

  1. Clone the repo
$ git clone git@gitlab.com:68publishers/projects/amp/amp-client-js.git
$ cd amp-client-js
  1. Install npm dependencies
$ npm install

Build and Demo

Use predefined commands for the application's build:

$ npm run build:dev # or prod

Paths of an output files are:

  • ~/build/amp-client.js (dev mode)
  • ~/dist/amp-client.min.js (production mode) respectively ~/dist/amp-client.standalone.min.js.

A simple demo page is located in ~/build/index.html. To show demo in your browser run:

$ npm run start:dev

Then visit the page http://localhost:3000.

Integration

Please see the Integration Guide.