What is the best practice for installing a lumen API and two React.js apps with Forge?
Hi All,
I have two domains: domain1.com and domain2.com.
I have build one lumen API and two react.js applications, one for each site.
What is the best practice for installing an API and a SPA via laravel forge (using Digital Ocean), would it be best to use two servers? (One for the SPAs and another for the API)
Additionally, I'd like to have the API accessible through a subdomain: api.domain1.com
Let's say I did use two servers, and pointed domain1.com and domain2.com to separate directories on the first server; how would I then point api.domain1.com to the second server? Or should I be using one server and pointing api.domain1.com to a subfolder containing the lumen application?
Please enlighten me with your wisdom.
Thanks!
Please or to participate in this conversation.