Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

backbone.js and the need of a back-end engine

reading this days about backbone.js (documentation, examples, etc), and as far as i have understood, this framework lets you code directly on the front-end, almost all the back-end engine, since you can structure a MVC architecture. You can create your data model, controllers, etc.

My question is: if you already have the MVC architecture built on the Front-End (engine), you just need a DataBase (SQL) in the cloud from where you can fetch or store data, why do you need a back-end engine (RoR3,Java,etc) to persist document data?

thanks in advance

like image 827
user1106811 Avatar asked Dec 28 '22 02:12

user1106811


1 Answers

You are confusing two different meanings of front end, the model in the backbone framework is not able to connect to a database directly, this model are designed to connect to an API (that would be your backend) that is connected to a database

like image 102
Fernando Diaz Garrido Avatar answered Jan 13 '23 11:01

Fernando Diaz Garrido