简体   繁体   English

如何构建一个用于托管在服务器中的 vue 和 node 应用程序?

[英]How to build an vue and and node app for hosting in the server?

How to host a JS app (Vue + Node) on my office server?如何在我的办公室服务器上托管 JS 应用程序(Vue + Node)?
Do I have to build both Vue and NodeJS together or build them separately?我必须一起构建 Vue 和 NodeJS 还是单独构建它们?
Please explain in detail.请详细说明。

I think building an application node.js and view.js is good for small applications.我认为构建应用程序 node.js 和 view.js 对小型应用程序有好处。

For larger applications, I advise you to create an REST API in node (with express.js for example).对于较大的应用程序,我建议您在节点中创建一个 REST API(例如使用express.js )。 it will be easier to maintain because the two codes will be separated and a big advantage is that if your API remains open you can call it with another interface (mobile application for example).这将更容易维护,因为这两个代码将被分开,一个很大的优势是如果您的 API 保持开放,您可以使用另一个接口(例如移动应用程序)调用它。

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

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