Question

I found a great tutorial on creating an MVC App from Scratch using Sencha Touch V1.1 but unfortunately it isn't all that applicable to Sencha Touch V2. I want to learn the new/right way to build an MVC app moving forward with their latest framework.

Any good tutorial for building an MVC App using Sencha Touch V2?

Here's a list of places I've already looked.

  • Official Docs
    • Videos are outdated
    • Examples don't show source snippets, you have to "View Source" and try to wade through the compressed/minified versions of the library.
    • Documentation doesn't describe MVC at all (just try searching for "mvc" in their search field... you'll come up empty handed)
  • Google Advanced Search
    • I tried narrowing down the results by looking for "Sencha Touch" "mvc" where the articles were posted in the last week.
  • And of course right here on StackOverflow.
    • looks like as of this post, I'm the only person posting with that tag
Was it helpful?

Solution

I have a complete starter-project for Touch 2 using the MVC pattern on github here:

https://github.com/FrancisShanahan/SenchaTouch2MVCHelloworld

You can read my blog post about it here:

http://francisshanahan.com/index.php/2011/sencha-touch-2-0-mvc-in-5-minutes-or-less/

Hope this helps you get started, -fs

OTHER TIPS

I was also looking for such kind of a tutorial and I found this example to be very helpful for kickstarting my own senchatouch 2.0 app: https://github.com/kawanoshinobu/SenchaTouch2-simple-CRUD-sample

It's in python and the author uses google app engine to run it, but it's pretty self-explanatory how you can run a copy locally using any other backend :) Hope this helps

All Sencha products (Sencha Touch, Ext JS) are expected to follow the new MVC architecture. You should start with understand it. Here is my resource list:

  1. MVC Application Architecture
  2. Getting Started with Touch
  3. Class System, Components etc..
  4. Examples.. but I don't think there are MVC examples for now...

Start with http://docs.sencha.com/touch/2-0/#!/guide/getting_started and examples/getting_started folder of the Sencha Touch 2.0 SDK download

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top