[英]Creating Express front end for node js backend API
I'm developing a platform which has school management I have already created every API in node js, Express and mongodb but now I don't know how should I make a front end in express coz when I was making stack app I'm using server side redering but in this case I have to use APIs and there is 5-6 API for every page how should I can securly do it in express front end coz lake of time I cant learn React or Angular right now.我正在开发一个有学校管理的平台 我已经在 node js、Express 和 mongodb 中创建了每个 API,但现在我不知道我应该如何在 express coz 中制作前端,因为我正在使用我正在使用的堆栈应用程序服务器端重新编译,但在这种情况下,我必须使用 API,并且每个页面都有 5-6 个 API,我应该如何安全地在快速前端完成它,因为我现在无法学习 React 或 Angular。 Please help
请帮忙
You can try this,integrating express APIs with JQuery你可以试试这个,将 express APIs 与 JQuery 集成
https://grokonez.com/node-js/integrate-nodejs-express-jquery-ajax-post-get-bootstrap-view https://grokonez.com/node-js/integrate-nodejs-express-jquery-ajax-post-get-bootstrap-view
Use templating engine like ejs.使用 ejs 之类的模板引擎。 If you do not want to use frontend framework by this way you can use vanilla html and javascript to build application and have more control rather than consuming apis using jquery.
如果您不想通过这种方式使用前端框架,您可以使用 vanilla html 和 javascript 来构建应用程序并拥有更多控制权,而不是使用 jquery 使用 api。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.