@here/create-harp.gl-app

Create harp.gl projects

Usage no npm install needed!

<script type="module">
  import hereCreateHarpGlApp from 'https://cdn.skypack.dev/@here/create-harp.gl-app';
</script>

README

Harp.gl application creator

Application creator for harp.gl based projects.

Pre-requirements

  • node.js
  • By default, generated app retrieves map data from HERE Vector Tiles Service. You need an apikey that you can generate yourself. Please see our Getting Started Guide.

Usage

npm init @here/harp.gl-app

This command will generate a complete harp.gl project based on Node.js, Webpack, and Typescript. You will be prompted to specify an example directory, package name, and access token.

To start:

cd harp.gl-example && npm start

Open http://localhost:8080/ in your browser to see the running application.

Generator Development & Testing

Testing locally:

yarn create-harpgl-app

or:

mkdir /tmp/clean && cd /tmp/clean
npm install /path/to/@here/create-harp.gl-app
npm init @here/harpgl-app