简体   繁体   中英

Node.Js + React.js + Flask web development architecture

I am building a full stack web application. Currently, in my head, the way it would work is a flask api framework would be in charge of speaking to a database. Then a frontend would be built with Node.JS and React.JS would be built on this. However, from what I have found it seems like with React there may not be a need for Node. I guess my question is this, is Node necessary in this build framework or should React call the Flask backend? I am new to Node and React, so any tips would be helpful.

你在烧瓶中所做的你可以用 Express.js 在 node.js 中做,通过 node.js 来联系烧瓶 api 并没有多大意义,因为你只是使用一个 api 来联系一个已经托管的 api相同的服务器,因此不需要中间的东西,无论您使用flask还是node.js作为后端,选择取决于您最喜欢的东西,您的使用和期望。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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