https://github.com/todbot/electron-hid-toy
Simple example of using node-hid in Electron (w/ React)
https://github.com/todbot/electron-hid-toy
Last synced: 11 months ago
JSON representation
Simple example of using node-hid in Electron (w/ React)
- Host: GitHub
- URL: https://github.com/todbot/electron-hid-toy
- Owner: todbot
- License: gpl-3.0
- Created: 2016-07-08T06:27:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-09-29T00:20:11.000Z (over 3 years ago)
- Last Synced: 2025-07-10T11:12:31.605Z (11 months ago)
- Language: JavaScript
- Size: 918 KB
- Stars: 19
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# electron-hid-toy
A simple Electron app to experiment with `node-hid`.
Also see [electron-hid-test-erb](https://github.com/todbot/electron-hid-test-erb) for a test using [electron-react-boilerplate](https://github.com/electron-react-boilerplate/electron-react-boilerplate/)

Tested on Electron v9.0.5. Originally tested on Electron v1.2.6.
To use:
```
yarn
yarn dev
```
To build the application:
```
yarn
yarn dist
```
Notes:
- On MacOS, running `yarn dist` will attempt to sign and notarize the app. This takes several minutes and requires setting the environment variables:
- `APPLEID` -- developer Apple ID
- `APPLEIDPASS` -- app-specific password for above Apple ID
- `TEAM_SHORT_NAME` -- team short name, as provided by `/Applications/Transporter.app/Contents/itms/bin/iTMSTransporter -m provider -u $APPLEID -p $APPLEIDPASSWD`
- This project leans heavily on https://github.com/electron-userland/electron-webpack-quick-start
- This project originally leaned heavily on https://github.com/b52/electron-es6-react
and http://electron.rocks/electron-builder-explained/