Skip to content
Snippets Groups Projects
Select Git revision
  • 3a6268c36d3fb1c8a92172f555542c12d3c3a4ce
  • master default protected
  • at_palomagr
3 results

main.js

Blame
  • main.js 845 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 = {} 
    
    program = Programs.open('programs/default.json')
    
    
    // UI 
    const View = require('./views.js')
    View.startHttp() 
    View.startWs() 
    
    Programs.assignSocket(View.uiSocket)
    View.assignProgram(program)