javascript - Can I write the backend interface directly using node to realize the separation of front and back ends? Is this appropriate?
巴扎黑
巴扎黑 2017-05-16 13:43:58
0
4
588

Bi She plans to do a project like this. I am not very familiar with node, but I feel that the node projects I see all directly render the front-end page. I wonder if this is possible?

巴扎黑
巴扎黑

reply all(4)
PHPzhong

Nodejs makes API, this is definitely possible,

But it depends on the product,

The advantage of nodejs is high concurrency and high IO, but it is not good at high operations,

Of course you can do it even if you are not good at it, but the performance is not as good as php+nginx

洪涛

It’s absolutely possible, it’s just like writing an interface in Java, open the interface and then transmit it via json

PHPzhong

Yes, you can use Nodejs+MongoDB+vue+ElementUI, separate the front-end and back-end, and use asynchronous requests to obtain data, which is very convenient.

为情所困

Yes, it is simple and convenient to write interfaces through nodejs. You can first learn the express framework (simple), and then learn promises or koa after understanding the principles and general structure.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!