Launching a stack via URL

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dalkin
Posts: 177
Joined: Wed Jul 04, 2007 2:32 am
Contact:

Launching a stack via URL

Post by dalkin » Wed Aug 25, 2021 4:55 am

Hello. I hope I'm in the right place. I am experimenting with launching a stack I uploaded to a web directory. I then created a new stack with a single button (the standalone app) that pulls down that stack file from the URL. It works to a degree but I have a few issues I need to sort out.

I can't seem to find any LC documentation that talks about this way of doing things, including its limitations or tips etc. but I am particularly concerned with saving the stack contents/changes and uploading/saving referenced multimedia files.

I think that someone will tell me it can only be done as a html5 project.
The underlying purpose of Al is to allow wealth to access skill
while removing from the skilled the ability to access wealth.

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

Re: Launching a stack via URL

Post by FourthWorld » Wed Aug 25, 2021 5:05 am

For a living example, in your IDE see Development -> Plugins -> GoLiveNet

Please ask any questions that come to mind. Delivering stacks via HTTP is how I've done much of my work for many years.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dalkin
Posts: 177
Joined: Wed Jul 04, 2007 2:32 am
Contact:

Re: Launching a stack via URL

Post by dalkin » Wed Aug 25, 2021 5:45 am

goLiveNet is very cool Richard. I guess my question is fairly simple .. using this approach, I wonder if my stack is downloaded into RAM - is there any mechanism for changes to the stack to be saved and consequently uploaded back to the server to overwrite the existing file?
The underlying purpose of Al is to allow wealth to access skill
while removing from the skilled the ability to access wealth.

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

Re: Launching a stack via URL

Post by FourthWorld » Wed Aug 25, 2021 6:23 am

Do you want to save the whole stack, or just data within the stack?

Either way, you'll need something in the server to receive the data, along with some form of authentication. LiveCode Server can help with that.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dalkin
Posts: 177
Joined: Wed Jul 04, 2007 2:32 am
Contact:

Re: Launching a stack via URL

Post by dalkin » Wed Aug 25, 2021 6:31 am

Thanks a million! I would prefer to save the whole stack. I have LC Server on my Indy licence.
The underlying purpose of Al is to allow wealth to access skill
while removing from the skilled the ability to access wealth.

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

Re: Launching a stack via URL

Post by FourthWorld » Wed Aug 25, 2021 7:25 am

What is the file size of the stack currently? And can your briefly describe what it does?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dalkin
Posts: 177
Joined: Wed Jul 04, 2007 2:32 am
Contact:

Re: Launching a stack via URL

Post by dalkin » Wed Aug 25, 2021 7:44 am

The stack is only 320kb at the moment and is intended to help songwriters think of lyrics. It contains various text fields and (in its desktop version) allows users to load sound files and also record sounds via mergMicrophone (Mac) with a Windows equivalent. The desktop version creates a new card for each musical project and populates a scrolling menu where people can navigate to any project they have created.
Screen Shot 2021-08-25 at 4.36.12 pm.png
The underlying purpose of Al is to allow wealth to access skill
while removing from the skilled the ability to access wealth.

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

Re: Launching a stack via URL

Post by FourthWorld » Wed Aug 25, 2021 8:18 am

Will you need to also upload the audio files?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dalkin
Posts: 177
Joined: Wed Jul 04, 2007 2:32 am
Contact:

Re: Launching a stack via URL

Post by dalkin » Wed Aug 25, 2021 8:38 am

Yes. That would be the ultimate aim but I was thinking a DropBox account might work. A specific folder on the server would be preferable though. I sort of stumbled across this LC feature and I’m surprised it’s not more widely used V html5 deployment.
The underlying purpose of Al is to allow wealth to access skill
while removing from the skilled the ability to access wealth.

Post Reply

Return to “Internet”