简体   繁体   English

我怎样才能为我的搜索栏做后端反应?

[英]How can i make back-end for my search-bar in react?

I designed a kind of search bar in react, My question is how can i make a back-end for that to show me the content of the website when i type something to looking for it?我在 React 中设计了一种搜索栏,我的问题是如何制作一个后端,以便在我输入内容进行查找时向我显示网站的内容? Thank you.谢谢你。

A way could be, making a node-js API backend.一种方法可能是制作一个 node-js API 后端。 Connect that to a database, and then query that database via the API from the react frontend.将其连接到数据库,然后通过 React 前端的 API 查询该数据库。

A lot of great tutorials online, about setting up nodejs with mongoDb for example.很多很棒的在线教程,例如关于使用 mongoDb 设置 nodejs。 https://medium.com/@sssaini/build-a-restful-api-backend-on-mongodb-using-node-js-and-mongoose-63f0866e4603 https://medium.com/@sssaini/build-a-restful-api-backend-on-mongodb-using-node-js-and-mongoose-63f0866e4603

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

相关问题 我如何在反应中显示后端响应? - How can i Show Back-End response in react? 如何同时运行我的前端反应和后端反应? - How do I run my react front-end and express back-end together? 如何让 React 组件从后端接收更新? - How to make a react component receive updates from the back-end? 如何使用 React 前端和 Flask 后端处理 HTTP 请求 - How can I handle HTTP request with react front-end and flask back-end 如何在服务器上部署Node Js后端和React Js前端? - How can I deploy Node Js back-end and React Js front-end on server? 如何从反应前端向节点后端发出发布请求? 获得 404 - How do I make a post request from a react front-end to a node back-end? Getting 404 在我的情况下,我应该如何使用 OAuth 2.0 授权授予(反应前端,Spring 引导后端) - How should I use the OAuth 2.0 Authorization grant in my case (React front-end, Spring Boot back-end) 为什么我的前端(react)和后端(express)没有连接 - why my front end(react) and back-end(express) is not connecting React Router使用我的URL请求到后端API - React router consume my url request to back-end API 如何使用Express和React作为UI构建器在后端处理路由 - How to handle routes in back-end with Express and React as UI builder
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM