在github上托管react项目(前端和后端)

问题描述 投票:0回答:1

我想在 github 上部署我的 React 应用程序。我在部署它时遇到了困惑。

  1. 我应该分别部署前端和后端吗?
  2. 当我托管项目时,如何保持与我本地创建的 mongoDb 数据库的连接?

前端:https://github.com/learnfromscratches/connections-frontend.git 后端:https://github.com/learnfromscratches/Connections-backend.git

我对托管没有任何想法。我应该如何托管网站和后端并使其连接?

reactjs api github github-actions hosting
1个回答
0
投票

Github只能部署静态网站,后端服务应尽量部署在Vercel等云服务厂商上。

© www.soinside.com 2019 - 2024. All rights reserved.