Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 1.03 KB

README.md

File metadata and controls

47 lines (27 loc) · 1.03 KB

refocus-whack-a-mole-lens

A realtime whack-a-mole game. Try to improve on this!

For a step by step tutorial, refer to the tutorial

whack a mole picture

Setup

  1. Git clone this repo.

     git clone https://github.com/annyhe/refocus-whack-a-mole-lens
    
  2. Install the Refocus Lens Developer Kit.

     git clone https://github.com/salesforce/refocus-ldk
     cd refocus-ldk
     npm install
    
  3. Copy this lens into your refocus-ldk/Lenses directory.

     cp -r ../refocus-whack-a-mole-lens Lenses
    
  4. Configure the Refocus LDK.

     npm config set refocus-ldk:lens WhackAMole
    

Test

Run the Refocus LDK's test script to run all the tests under refocus-ldk/Lenses/WhackAMole/test.

npm run test

Build

Run the Refocus LDK's build script to generate the lens library (refocus-ldk/dist/WhackAMole.zip).

npm run build

Deploy

Use the Refocus UI or API (/v1/lenses) to deploy the lens. Refer to the Deploy section on the tutorial