The most minimal project stack is a simple stack with a single browser widget and a preOpenStack handler.
# preOpenStack
--> Launch - on preOpenStack put the init_Url of me into gURL go to stack url gURL end preOpenStack
This script is at the card level, and could access a custom property `ghurl_URL` where we would store a url value which is typically;
https://livecodeworld.github.io/lcw_Discord/init.livecodescript
The init.livecodescript code than does all the work. As this is a preOpenStack event we can if we wish display answer or other dialogues before showing the stack and browser widget.
Similarly we can set the url of the browser widget to whatever we wish in the init.livecodescript. By default it is blank. Normally we would set this url to index.html for the project.
# Convenience For convenience we can use the naming conventions and some library handlers that assume simple defaults:
--> Deps - getprop init_Url [pShortFile] if pShortFile is empty then put "init.livecodescript" into pShortFile end if get the short name of the defaultstack return ghurl_Url (pShortFile, it) end init_Url function ghurl_Url shortFile, projectName put ghurl_BaseUrl() into gURL put projectName & slash after gURL put shortFile after gURL return gURL end ghurl_Url function ghurl_BaseUrl return "https://livecodeworld.github.io/" end ghurl_BaseUrl