简体   繁体   English

为 node js 后端 API 创建 Express 前端

[英]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请帮忙

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.

相关问题 Netlify/React 前端未连接到 Node.js/Express/MongoDB Atlas/Heroku 后端,但在开发/本地工作 - Netlify / React front end not connecting to Node.js / Express / MongoDB Atlas / Heroku backend but works in development/locally Node Express API +前端 - Node Express API + Front-End 在单个 Azure Web 应用程序中具有 Angular 前端的 Node/Express 后端 - Node/Express Backend with Angular Front End in a Single Azure Web App 将数据从 Vue 前端传递到 Node/Express 后端 - Pass data from Vue front end to Node/Express backend 通过从Node.js和Express.js中的前端请求数据来创建动态链接 - Creating dynamic link by requesting data from front-end in Node.js and Express.js Node.js / AngularJS前端调用Spring Boot API后端 - Node.js/AngularJS front end calling Spring Boot API backend 如何为反应前端创建和部署节点 js 博客 API 后端? - How can I create and deploy a node js blog API backend for a react front end? 使用 axios 从 mysql db.React 作为前端删除行,node.js 和 express.js 作为后端 - Using axios to delete the row from mysql db.React as front end with node.js and express.js as backend 为nest-js API创建前端 - Creating a front end for a nest-js API (设计问题)如何分离前端和后端以保护路由(后端)代码? (Node.js-快速-反应) - (Design question) How to decouple front- and back-end to protect routing (backend) code? (Node.js - Express - React)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM