API or not API?

What would yu see as pro/cons to split an react or elm/Phoenix couple in phoenix API/JSON serving a react or elm front end client ?

3 Likes

API pros:

  • Fast and interactive front-end
  • Serve different front-ends with only one back-end

API cons:

  • Serve, develop and maintain two separate websites (front-end and back-end)
  • Learn two different languages
  • More complicated authentication
5 Likes