For large project it’s tedious to write models just for js side since we are using ORM on server side. Is there a good way to let backbone or knockout using server side ORM easily?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are using node.js you can follow this and have a single JS obj being used on both Frontend and Backend.
But with other langs I don’t see how you can do that, you have to create your models and use rest requests to make changes to the Data.
Also I think that’s the right way because almost always you don’t need everything a Backend model has so you should architect you frontend like an application should be.