PDA

View Full Version : Splitting large application into Modules, some of which will be for Desktop



sunbiz
28 Jan 2012, 3:21 PM
With Sencha Touch 2 now that we have closer design to ExtJS 4 and the class system, we want to build a large scale application that will be divided into modules. These modules will interact with each other very little on the client-side and hence we are fine with having them into separate pages. Something like below:



/app
/registration
/app
/model
/view
/controller
index.html
/lab
/app
/model
/controller
/view
index.html
/pharmacy
/outpatient
index.html

Is this an appropriate way to structure the application??

The other challenge is that some of these modules are also meant to work on the desktop. I was thinking about using Profiles to do this, but it seems like mobile and tablets are the only available Profiles. The reason we feel that we can use the same code-base is because for the desktop UI we want them to look like touch interfaces with large buttons, sections and large text.

What is the catch to using Sencha Touch in combination with ExtJS 4 in the same shared codebase??
Can we can have the same views using Sench Touch 2 and ExtJS4, depending if its running on the desktop or tablet.

sunbiz
29 Jan 2012, 10:39 PM
Can we create a profile for Desktop, similar to how one would create profiles for Tablet and Phone??
Also, can the desktop Profile use widgets from ExtJS instead of Sencha Touch?

TonySteele
1 Feb 2012, 4:22 PM
I think alot of us are intested in guidence on this, realise views cant be shared but what about models, controllers etc. So how about a response ? Since the frameworks are now getting closer, you must have discussed this internally.

dward
6 Feb 2012, 1:23 PM
Any input guidance from Sencha would be much appreciated.

TommyMaintz
6 Feb 2012, 2:15 PM
Look at the reply we gave here.

http://www.sencha.com/forum/showthread.php?177656-Common-Sencha-JS-Platform-status&p=727553&viewfull=1#post727553

We definitely hope to bring the two code bases more together in the future. We feel like ST2.0 is architecturally very solid, and are not planning on making any more big changes going forward. This gives us an opportunity to get to a point where building a single Touch / Desktop app becomes a lot easier.