简体   繁体   English

节点Red Bluemix应用程序

[英]Node Red Bluemix Application

Is there any way to provide front end to the NODE-RED App in BLUEMIX? 有什么方法可以在BLUEMIX中为NODE-RED App提供前端? I mean if there is a way to attach Angular.JS or PHP to the application. 我的意思是说是否有一种方法可以将Angular.JS或PHP附加到应用程序。

You can embed a Node-RED app into an application based on AngularJS. 您可以将Node-RED应用程序嵌入基于AngularJS的应用程序中。 Node-RED is based on Node.js and there is even official documentation on how to embed it. Node-RED基于Node.js,甚至还有关于如何嵌入它的官方文档。 Take a look here: http://nodered.org/docs/embedding 在这里看看: http : //nodered.org/docs/embedding

You need to add the node-red package to the requirements and configure some settings. 您需要将node-red软件包添加到需求中并配置一些设置。 All is explained in the sample code provided in the above document. 在上述文档中提供的示例代码中对所有内容进行了说明。

I think the best way to use angularJs in combination with node-red is the template node from the dashboard ui: 我认为将angularJs与node-red结合使用的最佳方法是仪表板ui中的模板节点:

npm package dashboard ui: https://github.com/node-red/node-red-dashboard npm软件包仪表板ui: https : //github.com/node-red/node-red-dashboard

detailed description of usage: http://noderedguide.com/tag/template-node/ 使用的详细说明: http : //noderedguide.com/tag/template-node/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM