Skip to content
Snippets Groups Projects
main.js 819 B
Newer Older
  • Learn to ignore specific revisions
  • Jake Read's avatar
    Jake Read committed
    //
    
    Jake Read's avatar
    Jake Read committed
    //
    
    Jake Read's avatar
    Jake Read committed
    // new node controller / HEAP 
    
    Jake Read's avatar
    Jake Read committed
    //
    // main.js
    
    Jake Read's avatar
    Jake Read committed
    //
    
    Jake Read's avatar
    Jake Read committed
    //
    // 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.
    
    
    Jake Read's avatar
    Jake Read committed
    modules are objects having inputs, outputs, and state 
    programs are assemblies of modules 
    
    // business 
    
    Jake Read's avatar
    Jake Read committed
    const Reps = require('./reps.js')
    const Programs = require('./programs.js')
    
    Jake Read's avatar
    Jake Read committed
    
    
    Jake Read's avatar
    Jake Read committed
    var program = Programs.new('new program')
    
    Jake Read's avatar
    Jake Read committed
    const View = require('./views.js')
    View.startHttp() 
    View.startWs() 
    
    Jake Read's avatar
    Jake Read committed
    Programs.assignSocket(View.uiSocket)
    View.assignProgram(program)