douqin231881
2017-12-06 10:38
浏览 93
已采纳

使用Laravel托管ReactJS

We are in the final stages developing a web application. It has a front-end in React and a back-end in Laravel. They communicate by sending JSONs back and forth (API style), so they can be hosted on seperate servers without many problems.

During development we switched to Firebase, because this way we could host React for free, but we need some logic in the back-end and Firebase is not ideal for this.

What is the best solution to host an application that uses React for the front-end and Laravel for the back-end?

图片转代码服务由CSDN问答提供 功能建议

我们正处于开发Web应用程序的最后阶段。 它在React中有一个前端,在Laravel中有一个后端。 它们通过来回发送JSON(API样式)进行通信,因此它们可以在没有太多问题的情况下托管在单独的服务器上。

在开发过程中我们切换到了Firebase,因为这样我们可以免费托管React,但我们需要在后端使用一些逻辑,而Firebase并不适合这个。

托管使用React作为前端和Laravel作为后端的应用程序的最佳解决方案是什么?

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • duanpo2813 2017-12-06 17:52
    已采纳

    This is a very generic question. There are plenty of hosting providers out there - AWS, Google Cloud, DigitalOcean to name a few.

    To decide which one is the best, you need to provide more information:

    • What matters most to you? Pricing, support, availability, technology solutions / capabilities, ease of scaling?
    • What's your tech stack, starting with database, caching, CDNs, etc.(the whole works)? Laravel and ReactJS alone does not describe your tech stack unless you're using local file drivers for everything (such as sessions, cache, config) and SQLite as your DB.
    已采纳该答案
    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题