Skip to content
Snippets Groups Projects
Commit 783ffafd authored by Jake Read's avatar Jake Read
Browse files

commit before fleshing out server module request

parent eb903a6e
Branches
No related tags found
No related merge requests found
......@@ -4,12 +4,20 @@ const Gcode = require('./lib/gcode.js')
var terminal = new Terminal()
var gcode = new Gcode()
terminal.outputs.lineOut.attach(gcode.inputs.lineIn)
function writeJson(mod){
var jswoon = JSON.stringify(mod)
console.log(jswoon)
}
writeJson(terminal)
writeJson(gcode)
terminal.outputs.lineOut.attach(gcode.inputs.lineIn)
gcode.outputs.instructionOut.attach(terminal.inputs.lineIn)
//terminal.outputs.lineout.attach(gcode.inputs.linein)
// think through GET / PUT requests... defaults and particular instances... GET /path instantiates a new one of these, loads it. PUT /path walks to that module, updates relevant features. is this heavy? pointers all the way down
// make output boxes, html? post two gcode instructions through to those, from one input terminal box?
//development environment: 'require' means you can't really re-write on the fly, I think? oy push, recompile and resart? this is kind of what you want - to edit intentionally, saving a new thing, loading a new thing... module would have to save a string copy of itself, load that to browser... just push the file
// might have to wrap intputs / outputs into gcode.outputs / gcode.inputs, extends BaseClass (extends EventEmitter)
\ No newline at end of file
// maybe best is to try the click-to-add runtime, learn about server requests etc, then we'll know enough to start
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment