GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - salesforce/refocus-ldk: Refocus Lens Developer Kit - a toolkit for developing, testing and packaging Refocus lenses for deployment

This repository was archived by the owner on Oct 2, 2024. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

37 Commits
37 Commits

Folders and files

NameName
Last commit message
Last commit date
Helpers
Helpers
 
 
Lenses/Example
Lenses/Example
 
 
dist
dist
 
 
public
public
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CODEOWNERS
CODEOWNERS
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
LICENSE.txt
LICENSE.txt
 
 
LensDeveloperGuide.md
LensDeveloperGuide.md
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
gulpfile.js
gulpfile.js
 
 
index.js
index.js
 
 
lensarg.js
lensarg.js
 
 
main.template
main.template
 
 
package.json
package.json
 
 
webpack.ldk.config.js
webpack.ldk.config.js
 
 
webpack.lens.config.js
webpack.lens.config.js
 
 

Repository files navigation

refocus-ldk

Refocus Lens Developer Kit

Note: this repository is infrequently maintained.

The Refocus Lens Developer Kit (LDK) is a toolkit for developing, testing and packaging Refocus lenses for deployment.

  • Introduction
  • Install
  • Configure
  • Create
  • Implement
  • Prototype
  • Test
  • Build
  • Deploy

Introduction

Refocus is a platform for visualizing the status of some set of subjects under monitoring. The platform does not attempt to provide visualizations to satisfy every type of user. Instead, it allows users to install add-on modules, which we call lenses, to provide new visualizations. Each lens provides a new visualization to help users understand their data in a new way.

The LDK lets you build and test a lens quickly and iteratively, without having to install it into a running Refocus application. The LDK also provides some dummy datasets and simulates realtime events so you can test how your lens handles hierarchy data and realtime events.

The LDK comes with an "Example" lens pre-installed in the ./Lenses directory--you can use this to get familiar with how a lens works or as a jumping-off point for developing your own lens.

Install

git clone https://github.com/salesforce/refocus-ldk.git
cd refocus-ldk
npm install

Configure

Since you can work on multiple lenses in the LDK, in this step you specify the name of the lens you want to work on (or create) right now.

Note: All the other npm run ... scripts depend on this config setting!

npm config set refocus-ldk:lens SuperDuperLens

If you are working on multiple lenses and you aren't sure which lens you are currently using, you can run npm config list | grep refocus-ldk:lens.

Create

Create a basic directory structure with some starter files so you can get right into developing, testing and packaging your new lens.

npm run create

Implement

See the Lens Developer Guide for help, guidelines and reference materials.

Prototype

In one terminal, from your refocus-ldk directory, start the LDK-Prototyper, a local app server which renders your lens in a browser for rapid prototyping.

npm run prototype

In another terminal, also from your refocus-ldk directory, automatically compile your code as you make changes so you can see the results in the browser immediately (just refresh http://localhost:3000).

npm run compile-watch

Test

Run all the tests under your lens's test directory.

npm run test

Build

Before you build your lens, you should update your lens metadata in ./SuperDuperLens/lens.json. Note: "lensEventApiVersion" currently defaults to 1.

Package up all your lens resources into ./dist/SuperDuperLens.zip for deployment using the build script:

npm run build

During the build process, webpack bundles up all the javascript files and dependencies required by ./SuperDuperLens/src/main.js into ./SuperDuperLens/lens.js, then that gets zipped up into ./dist/SuperDuperLens.zip along with ./SuperDuperLens/lens.json.

Deploy

When you are ready to install your new lens into Refocus, upload ./dist/SuperDuperLens.zip as your lens library file use the Refocus API (/v1/lenses) or Refocus UI.

About

Refocus Lens Developer Kit - a toolkit for developing, testing and packaging Refocus lenses for deployment

Topics

refocus

Resources

Readme
BSD-3-Clause license

Code of conduct

Code of conduct

Security policy

Security policy
Activity
Custom properties

Stars

7 stars

Watchers

3 watching

Forks

6 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.