A realtime whack-a-mole game. Try to improve on this!
For a step by step tutorial, refer to the tutorial
-
Git clone this repo.
git clone https://github.com/annyhe/refocus-whack-a-mole-lens
-
Install the Refocus Lens Developer Kit.
git clone https://github.com/salesforce/refocus-ldk cd refocus-ldk npm install
-
Copy this lens into your
refocus-ldk/Lenses
directory.cp -r ../refocus-whack-a-mole-lens Lenses
-
Configure the Refocus LDK.
npm config set refocus-ldk:lens WhackAMole
Run the Refocus LDK's test
script to run all the tests under refocus-ldk/Lenses/WhackAMole/test
.
npm run test
Run the Refocus LDK's build
script to generate the lens library (refocus-ldk/dist/WhackAMole.zip
).
npm run build
Use the Refocus UI or API (/v1/lenses
) to deploy the lens. Refer to the Deploy section on the tutorial