HUB
Sign inSign up
app-keyboard-node logo

oaklabs/app-keyboard-node

By oaklabs

•Updated almost 7 years ago

This is an example using nodejs showing how to capture keypress events on OakOS

Image
0

1.6K

oaklabs/app-keyboard-node repository overview

⁠app-keyboard-node

An example app that can be used to log keyboard events to an OakOS unit

⁠Running locally

Make sure that you are running the right version of Node locally. You will find the required version in the .nvmrc file If you are not running the same version (node -v) then you will need to run

nvm install $(cat .nvmrc)
npm run rebuild
⁠Now you can run locally
npm run dev
⁠Running in a docker container
xhost +
docker-compose up --build
⁠Shutting down the docker container
docker-compose down

⁠Example Installation

{
  "services": [
    {
      "image": "index.docker.io/oaklabs/app-keyboard-node:latest",
      "environment": {
        "TZ": "America/Los_Angeles"
      }
    }
  ]
}

This snippet results can be seen in the application logs on the OakOS Dashboard

Tag summary

Content type

Image

Digest

Size

348.9 MB

Last updated

almost 7 years ago

docker pull oaklabs/app-keyboard-node