foxbox
foxbox copied to clipboard
[meta] Enabling build gaia with web client
The Idea is host a web server in foxbox (or work alone without foxbox), and provide web app to let developer could build gaia on web directly.
The rough architecture could use https://github.com/gasolin/webapplate to provide
- node/express server
- webapp template
Things need to evaluate:
- use node to execute command
- get console log to node server
- design API to simplify server and webapp communication
Ref:
- expose web server in VM to host OS http://aruljohn.com/info/virtualbox-access-guest-from-host-nat/
- Execute A Unix Command With Node.js http://www.dzone.com/snippets/execute-unix-command-nodejs
The goal will be spanned in gaia only in first phase.
We could create a daemon foxboxd
to accept REST API, handle command queue, report result, track progress via API. And provide a basic webapp that allow controlled from Desktop or mobile device. The webapp could use FirefoxOS BuildingBlock as UI framework.
It could be lose-coupled with foxbox, which means current gaia developer also get benefit from foxboxd.
go with web terminal https://github.com/codetunnel/shotgun/wiki/Getting-Started