user3790827
user3790827

Reputation: 815

Splitting Single Page App code from Phoenix Backend?

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:

Now I have 2 questions regarding this:

Upvotes: 2

Views: 540

Answers (1)

Cody Poll
Cody Poll

Reputation: 8270

It's perfectly fine to separate front-end and back-end code into separate repos. When you're first starting an app, that's often overkill. Additionally, Phoenix's response time are superb, so you're not going to see incredible benefits from putting your static assets on a CDN (compared to doing the same with, say, a Rails app).

If you do separate them, put your static assets on a CDN and deploy your Phoenix backend just like you would with any other framework (AWS, VPS, Heroku, etc.)

Upvotes: 2

Related Questions