//
//
// new node controller / HEAP 
//
// main.js
//
//
// Jake Read at the Center for Bits and Atoms
// (c) Massachusetts Institute of Technology 2018
//
// This work may be reproduced, modified, distributed, performed, and
// displayed for any purpose, but must acknowledge the mods
// project. Copyright is retained and must be preserved. The work is
// provided as is; no warranty is provided, and users accept all
// liability.

/*

RULES:

modules are objects having inputs, outputs, and state 
programs are assemblies of modules 

*/

// business 
const Reps = require('./reps.js')
const Programs = require('./programs.js')

var program = Programs.new('new program')

// UI 
const View = require('./views.js')
View.startHttp() 
View.startWs() 

Programs.assignSocket(View.uiSocket)
View.assignProgram(program)