# Node-red flask(confused

**URL:** <https://discourse.nodered.org/t/node-red-flask-confused/28222>\
**Category:** General\
**Created:** [12 June 2020 10:28 UTC](https://discourse.nodered.org/t/node-red-flask-confused/28222 "2020-06-12T10:28:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![googleplexian](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@googleplexian](https://discourse.nodered.org/u/googleplexian)\
**Post date:** [12 June 2020 10:28 UTC](https://discourse.nodered.org/t/node-red-flask-confused/28222/1 "2020-06-12T10:28:43Z")

</div>

hello  
i used node red and flask  
node-red to control a devices  
and flask for front-end (with html and css)  
i have a troubles to choice a protocol to communicate flask to node-red between( http ,mqtt or there is other suggestion )  
it is normal to run two server node-red and flask or this is a bad idea

---

<div class="post-metadata">

**Author:** ![rei\_vilo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rei_vilo/32/162_2.png) [@rei\_vilo](https://discourse.nodered.org/u/rei_vilo)\
**Post date:** [12 June 2020 10:32 UTC](https://discourse.nodered.org/t/node-red-flask-confused/28222/2 "2020-06-12T10:32:24Z")

</div>

I am not familiar with Flask, but Node-RED provides its own HMI server, called dashboard.

---

<div class="post-metadata">

**Author:** ![googleplexian](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@googleplexian](https://discourse.nodered.org/u/googleplexian)\
**Post date:** [12 June 2020 10:37 UTC](https://discourse.nodered.org/t/node-red-flask-confused/28222/3 "2020-06-12T10:37:55Z")

</div>

yes i know but i am not free to making a great dashboard , it is so limit

---

<div class="post-metadata">

**Author:** ![JGKK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jgkk/32/18515_2.png) [@JGKK](https://discourse.nodered.org/u/JGKK)\
**Post date:** [12 June 2020 10:58 UTC](https://discourse.nodered.org/t/node-red-flask-confused/28222/4 "2020-06-12T10:58:32Z")

</div>

Have you had a look at [node-red-contrib-uibuilder](https://flows.nodered.org/node/node-red-contrib-uibuilder) as this gives you all the flexibility to use the frontend framework of your choice.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [12 June 2020 10:59 UTC](https://discourse.nodered.org/t/node-red-flask-confused/28222/5 "2020-06-12T10:59:08Z")

</div>

look at the node-red-contrib-uibuilder - it has all the hooks you need to build one yourself - otherwise yes you are into websockets and cross-site-scripting or mqtt etc

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [12 June 2020 11:21 UTC](https://discourse.nodered.org/t/node-red-flask-confused/28222/6 "2020-06-12T11:21:12Z")

</div>

> [@googleplexian](#):
>
> and flask for front-end (with html and css)

Hi, can you explain what kind of endpoints you have on Flask, and how you serve them? For example, are you routing through `@route` methods on functions, having a complex setup with `MethodView`s and factories, or inherited templating through Jinja?  
Despite the answers above it's possible to use them together, but it might not be your best option depending on your situation. Can you explain a bit more on my previous questions, and what kind of device control you've set up on Node-RED?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [11 August 2020 11:21 UTC](https://discourse.nodered.org/t/node-red-flask-confused/28222/7 "2020-08-11T11:21:16Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
