I have a Rails API application and a separate standalone React application.
I want to create a controller that returns this whole app to the end user and let the react app consume the API from the dedicated controllers, instead of creating two servers.
How can I do this neatly?
The react app tree is:
- public
- favicon.ico
- index.html
- manifest.json
- src
- Assets/
- Componenets/
- Views/
- App.css
- App.js
- index.css
- index.js
- registerServiceWorkder.js
- README
- package.josn
- package-lock.json