Skip to content
Snippets Groups Projects
Select Git revision
  • db763cc2feb1f14f60b7d9244bef18629bc23a26
  • master default protected
2 results

index.html

Blame
  • main.js 819 B
    //
    //
    // 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)