Hi folks. can you help me?
In the company where I work, we have a project that currently both the back end and the front-end are in Rails. Of course, we realize that this structure was tied up costing us more hours in each new feature or maintenance.
Thinking about it, we divide the project into parts that make sense:
1 - API rails, but while the Rails 5 not out of beta, we will use the rails-api gem;
2 - Back-end on Rails, because we keep all business rule we already have;
3 - Front-end in EmberJS in version 2.3.0.
Basically the operation is as follows: the rails in the back-end run our processes and save the data in the base (as is the case today), the front-end API query that in turn query the data in the base.
We never use EmberJS here, so I do not know what the best practice and on their own could not find anything that expliacasse me properly or I could understand correctly
My questions are:
1 - When creating the EmberJS project, I have to take the ember-date?
2 - I must use RESTAdapter or ActiveModelAdapter and why?
3 - What is the best way to structure the server? For example the url http://app.meuprojeto.com points to the front end and the url http://api.meuprojeto.com points to the API, the API has to be within the Front End folder or they can be “sisters folders”?
4 - Say I have the users table in the back-end with 15 fields, however, the front-end I will only display or edit five fields in the model I have to identify the 15 fields or only those who will view / edit?
5 - What is the best way for me to create the urls that will to set the API?
Sorry if the questions are too frivolous, but I really could not find somewhere that retiresse me these questions. And in the city where I live I have no contact with anyone who knows the EmberJS.
Thanks in advance!