application architecture

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
fredigertsch
Posts: 38
Joined: Mon Jan 03, 2011 5:42 pm

application architecture

Post by fredigertsch » Mon Feb 21, 2011 1:59 pm

Hi there
I am developing an app and need some help from the community. The app should administer many lessons with text, video, images, folders and files. It should be possible to download all this media, so they are accessable without internet connection. My idea is, to hold the informations that are necessary for the search/find process in the database on the server. I plan to save all medias for one lesson in a stack. For each lesson would be saved on the server one stack. When a user after the find process get acces to a lesson, then the stack will be downloaded and will be accessable without internet connection. What you think about this. Thanks for you help, I am a livecod-newbie, perhaps all my thought are wrong.
Best, Fredi

kotikoti
Posts: 72
Joined: Tue Apr 15, 2008 7:35 pm

Re: application architecture

Post by kotikoti » Mon Feb 21, 2011 3:35 pm

It is doable.
In the process of implementing something on this lines. However, not using any file server since all is to be supplied as a complete set in a USB drive with option to see when new release is available (this bit hence is the webserver access for updates).
In your case, if you will be bundling the new lesson in a .rev file hence will need to make use of

Code: Select all

start using stack 
directive to load it and make it useable.
You might keep a system of managing list of the contents (lessons) which would be updatabe in cases of new ones coming online hence allowing user to see them and download associated .rev/zip file.
As for managing the content movies/videos, images and associated files, that is also possible to "store" these in the rev file however, you will still need to extract/put these onto the system temporarily for these to be used. Also, please work out a tidy up routine once the app is terminated to clean up any of these files put on the system.

A resource you might consider looking at is a nice app by sosmartsoftware called Tutorials Picker 2.0 (http://www.sosmartsoftware.com/?r=revolution&l=en) It's an open app hence you can see the code and a good learning tool.

kotikoti
Build 160
Version 2.9.0
Platform: Windows

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: application architecture

Post by FourthWorld » Mon Feb 21, 2011 4:21 pm

fredigertsch wrote:The app should administer many lessons with text, video, images, folders and files. It should be possible to download all this media, so they are accessable without internet connection. My idea is, to hold the informations that are necessary for the search/find process in the database on the server. I plan to save all medias for one lesson in a stack. For each lesson would be saved on the server one stack. When a user after the find process get acces to a lesson, then the stack will be downloaded and will be accessable without internet connection. What you think about this.
I think you'll find Reactor Lab very inspiring, as it takes a very similar approach:

http://livecodejournal.com/features/reactorlab.html
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

fredigertsch
Posts: 38
Joined: Mon Jan 03, 2011 5:42 pm

Re: application architecture

Post by fredigertsch » Mon Feb 21, 2011 8:31 pm

Hey guys, thank you very much. That gives me confidence. Any other toughts are welcome.
Best from Switzerland, Fredi

fredigertsch
Posts: 38
Joined: Mon Jan 03, 2011 5:42 pm

Re: application architecture

Post by fredigertsch » Mon Feb 21, 2011 8:47 pm

Hi kotikoti
But where can I download the Tutorials Picker 2.0, there is no link???
Best, Fredi

deebee
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 89
Joined: Mon Jul 19, 2010 6:59 am

Re: application architecture

Post by deebee » Mon Feb 21, 2011 9:14 pm

The link is the hard drive icon just up and to the right of the description.

fredigertsch
Posts: 38
Joined: Mon Jan 03, 2011 5:42 pm

Re: application architecture

Post by fredigertsch » Mon Feb 21, 2011 9:34 pm

Thanks, now I have seen, I was on the false page.

Post Reply