Looker Data Application Reference Implementation

Introduction

This reference implementation is intended to be a library of clarifying examples for building an application with Looker's Developer tools. It covers a range of simple to complex use cases and includes front and back end code.

Tip

More examples to come. View the roadmap here

Installation

To begin: ensure you have yarn installed yarn –version if you dont, you can install it via npm npm install –global yarn

git clone git@github.com:llooker/data_application_reference_implementation.git
cd data_application_reference_implementation
cd frontend
yarn install
cd ../backend/
yarn install

Then add your two env files with your information:

frontend/.env

### Env variables required by frontend

PBL_DEV_PORT=3001
API_HOST=http://localhost:3000
LOOKER_HOST=https://example.looker.com
LOOKER_API_HOST=https://example.looker.com:19999
LOOKERSDK_EMBED_HOST=https://example.looker.com

backend/.env

### Env variables required by backend

PBL_PORT=3000

LOOKERSDK_API_VERSION=4.0
LOOKERSDK_BASE_URL=https://your-instance.looker.com
LOOKERSDK_CLIENT_ID=xxxxxxxxxxxxxxxxxxxxxx
LOOKERSDK_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxx
# no protocol for this host
LOOKERSDK_EMBED_HOST=your-instance.looker.com
LOOKERSDK_EMBED_SECRET=xxxxxxxxxxxxxxxxxxxxxx

Then to boot up the application run:

yarn dev

Examples

For beginners please start by visiting the Basics