A Node.js proxy server for connecting to a remote XCarve via a Raspberry Pi that is running xcarve-server. For detailed install instructions, please visit the tutorial on the Adafruit Learning System.
Make sure you have the latest stable version of Node.js installed on your computer.
$ node -v
v7.0.0
Install xcarve-proxy
on your computer using npm
.
$ npm install -g xcarve-proxy
Make sure you have xcarve-server running on your Raspberry Pi before continuing. If everything has been setup properly, you can start the proxy daemon by running the following command:
$ xcarve-proxy start
██╗ ██╗ ██████╗ █████╗ ██████╗ ██╗ ██╗███████╗
╚██╗██╔╝ ██╔════╝██╔══██╗██╔══██╗██║ ██║██╔════╝
╚███╔╝█████╗██║ ███████║██████╔╝██║ ██║█████╗
██╔██╗╚════╝██║ ██╔══██║██╔══██╗╚██╗ ██╔╝██╔══╝
██╔╝ ██╗ ╚██████╗██║ ██║██║ ██║ ╚████╔╝ ███████╗
╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═══╝ ╚══════╝
starting proxy on port 1338...
Visit easel.inventables.com to test the proxy.
$ xcarve-proxy stop
stopping proxy...
Copyright (c) 2015-2016 Adafruit Industries. Licensed under the MIT license.
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!