I'm working on a Phoenix + ReactJS app and so far all the tutorials I've seen on the internet seem to install React inside the Phoenix directory:
- Trello Clone
- React + Phoenix
- Integrating React Components in Phoenix - HashRocket
- React + Phoenix - Elixir Sips
- Phoenix React Redux example by 10 consulting
Now I have 2 questions regarding this:
first of all, is it a good ideea? Most SPA projects I've worked on had their client side code split from the backend code. There are also several advantages to doing it this way. Why do Phoenix developers tend to go the other way around?
if we do separate the frontend from the backend how should we actually do it? What are we supposed to configure and how?