ExtJS provides a clean MVC framework which fits perfectly with a Jongo back-end.
By using a rest proxy like this:
Ext.define('User', { extend: 'Ext.data.Model', fields: ['id', 'name', 'email'] }); Ext.define('Users', { extend: 'Ext.data.Store', model: 'User', proxy: { type: 'rest', url : '/jongo/user', reader: { type: 'json', success: true, root: 'response' } } });
Our application is ready to perform all rest operations on the database without doing any server-side coding. Give it a try, you'll be pleased.
No hay comentarios:
Publicar un comentario