If it's only me working on the whole project, I will work only with rails. But what if I have a another frontend who uses yeoman, which is the good workflow to integrate two work together ?
How do they integrate front end and back end work together?
1–6 of 6 posts
Re: How do they integrate front end and back end work together?
#2In your case you would probably want to serve the content(resources) using REST. I am not particularly sure how this is done in Rails but it shouldn't be tough to have your objects serialized into json. You would then write AJAX code in your frontend/client code to interact with the backend via the API.
Re: How do they integrate front end and back end work together?
#3Re: How do they integrate front end and back end work together?
#4I personally use REST APIs (over HTTP/HTTPS) to surface all the backend capabilities. Then it doesn't matter how the frontend is developed. In your case you would probably want to serve the content(resources) using REST. I am not particularly sure how this is done in Rails but it shouldn't be tough to have your objects serialized into json. You would then write AJAX code in your frontend/client code to interact with…
Re: How do they integrate front end and back end work together?
#5I think you need to turn your front end code into Rails erb templates. Yeoman might be too large of a tool to use, it seems to replicate some of what Rails provides. Try and extract just the html/css/javascript and then move that over to the views section of your Rails app?
Re: How do they integrate front end and back end work together?
#6A common system design is to have a database, a RESTful API, and then a bunch of clients which interact with the API in order to do whatever they need to do.
The method of integration between the different parts of your system are up to you, but having an API to manage the ultimate state of your system is easy to think about and pretty simple to implement too.
Without knowing more about what kind of system you're trying to build, it's difficult to give you any more concrete advice. Different components will require different things.