Coder Social home page Coder Social logo

tengqingya / pomelo_admin_web_glue Goto Github PK

View Code? Open in Web Editor NEW

This project forked from itenyh/pomelo_admin_web_glue

0.0 2.0 0.0 11.41 MB

pomelo_admin的前端管理系统,加入了中间件以兼容mqtt协议

JavaScript 84.35% HTML 0.85% Ruby 0.15% CSS 14.65%

pomelo_admin_web_glue's Introduction

pomelo_admin_web_glue

pomelo 2.2.0 更新了内部协议,rpc, admin协议均切换为mqtt。pomelo_admin_web已经不能和pomelo后端连接。这里为pomelo_admin_web增加了一个中间件,用以桥接mqtt协议的通信。

主要改变有:

  1. adminweb(原pomelo_admin_web),socket.io升级(0.8.7 => 2.1.2)
  2. 加入了中间件middleadmin,以兼容pomelo后端mqtt协议

Installation

$ npm install

Start

$ node app.js

Configuration

/config.json

{
  "webServerPort": 7001,               //外部访问admin_web的端口

  "middWarePort": 3020,                //中间件暴露给admin_web访问的端口
  "middWareAdd": "192.168.1.112",      //中间件所在地址,由于远方前端会调用,请勿用localhost

  "mqttServerPort": 3005,              //pomelo后端暴露的接口,在pomelo项目config/master.json中配置
  "mqttServerHost": "192.168.1.9",     //pomelo后端所在地址

  "clientId": 1,                       //用户Id,任意
  "username": "admin",                 //在pomelo项目config/adminUser.json中配置的用户信息
  "password": "admin"                   
}

Others

1. 需要在Linux下运行
2. Linux需要安装sysstat模块
3. pomelo后端需要在app.js中打开系统监控模块:
   app.configure('production|development', function () {
       app.enable('systemMonitor');
   });

pomelo_admin_web_glue's People

Contributors

itenyh avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.