Jongo and ExtJS

To work out some issues other developers might have when working with Jongo, I've started to develop a  JavaScript only application (pretty much like the Administration Console) and get some insights into using  a great JavaScript framework named ExtJS.

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