node-power

1.0.5 • Public • Published

Node Power

Node.js library for fully automatically generating and connecting web interfaces using Express REST API, Socket.io and React.js with a simple schema setup.

Example Setup:

const NodePower = require('node-power');

const schema = {title:'Test Power',pages:{'/':[
  {text:'Node Power Test App'},
  {link:['Tommy','/tommy']},
  {input:['Name',(name)=>{console.log('name',name)}]}
],'/tommy':[
  {button:['name',()=>{console.log('button pressed')}]},
  {output:['age',(send)=>{
    setInterval(()=>{send('pingus')},1000);
  }]}
]}};

const app = new NodePower(schema);
app.run(4000);

Readme

Keywords

none

Package Sidebar

Install

npm i node-power

Weekly Downloads

1

Version

1.0.5

License

ISC

Last publish

Collaborators

  • calebblack