Skip to content

Latest commit

 

History

History
80 lines (57 loc) · 1.46 KB

File metadata and controls

80 lines (57 loc) · 1.46 KB

Demo App

This is the src code of kepler.gl demo app. You can copy this folder out and run it locally.

1. Install

npm install

or

yarn

2. Mapbox Token

add mapbox access token to node env

export MapboxAccessToken=<your_mapbox_token>

3. Start the app

npm start

Cloud Providers

Connecting your AWS Account

1. Setup AWS Amplify CLI

Install and configure the Amplify CLI:

npm install -g @aws-amplify/cli
amplify configure

2. Setup AWS services needed

Setup AWS Authentication and Storage

These steps create a new Cloudformation stack, a Cognito user pool and a S3 bucket and connect both via policies.

amplify add auth
amplify add storage

Always finish Amplify changes by:

amplify push

If Amplify services only needs to be updated run

amplify update auth
amplify update storage

3. AWS Amplify configuration for Kepler.gl

Copy the file aws-exports.js generated by the previous step into the demo-app/src folder (there is already an empty one to avoid startup problems)

Finally, set the AWSAccountName (just for display) in the environment:

export AWSAccountName=demo-account

Notes on AWS as cloud provider

  • URLs of shared maps expire after one hour.