This project creates a drag-n-drop web user interface for the RESTful client of SBrick Drive, an library that simplifies the integration with SBrick (Bluetooth controller for Lego).
- Set SBrickDrive RESTful server url in src/configs/$NODE_ENV.json.
npm run startstarts the webapp.- Drag instructions on the left to the instruction queue on the right.
- Click "Play" when ready to send queued instructions to SBrick Drive.
- Click "Clear" to remove all pending instructions.
npm run start-stub-server starts a stub server to simulate a running instance of the RESTful server of SBrick Drive.
The Typescript type definition for react-beautiful-dnd wasn't up-to-date with react-beautiful-dnd (6.0.0) at the time of writing.
I manually copied up-to-date type definition file from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-beautiful-dnd/index.d.ts to node_modules/@types/react-beautiful-dnd/index.d.ts.
Also needed to add: export type DraggableStyle = DraggingStyle | NotDraggingStyle;
ISC
Drop me a line at samli@samuelli.net
