Skip to content
Snippets Groups Projects
Forked from jjlustig / EECS498-uBoard
Source project has a limited visibility.

uBoard

Install

Open your mobile browser by scanning the QRCode or enter the URL, then you are able to control your desktop via browser.

Features

Passcode protection

Setup

Get required packages

$ npm install

This will run bower install and install client side libraries into public/vendor

After, run

$ node server.js

To host the uBoard server on the desktop.

Code structure

The server uses server.js and the socket.io to change the mouse position and receive keyboard input

The desktop uses desktop.html to display the QR code on the desktop window.

For the client side, a mobile device will receive index.html and its attached client.js. This allows the User to input the keyboard (top half of screen) or move the mouse (bottom half of screen) and emit a WebSocket signal to the server.

Build for Desktop

You need install node-webkit-builder first

$ npm install nw-builder -g

You have to check nw.js website and use same io.js version as nw.js did.

$ nvm install iojs-1.2.0
$ nvm use iojs

To build a smaller package, we only need install essential libraries for production. Clone a new repository and run following commands:

$ npm install --production
$ nwbuild -p osx64 webbymouse -v 0.12.3

NOTE: Your desktop OS must have the needed support for the robotjs library.