B4J Question [BANanoServer]

LJG

Member
Using the B4JServerDemo in Banano5.10, where would you add the BANano.Header and BANano.TranspilerOptions for the browser (client) pages?

To maintain the ability to code both on the server-side and the browser side, I would think this would be possible to do in the Banano5.10 B4JServerDemo. For example, I noted that the BANano.Header has to be added in the AppStart but the AppStart is taken up by the server-side in the demo. Since my goal is a PWA app within a BANano server, maybe this is not possible (since PWAs require much more configuring in the AppStart than the BROWSERAbout page in the B4JServerDemo). I hope I am making sense.

Thanks for your suggestions and input.
 

LJG

Member
Solved:
The BananoServer client-side settings for the PWA can be done in the Server side's AppStart. When I saw the "Server.BANano" prefix, I thought that these settings were for a server-side only option. But now I realize that the "Server" reference in "Server.BANano" is only telling you that you are accessing the client-side .BANano compilation settings for the BANano BROWSER class that creates the page (using the BANanoServer demo as a reference). This is excellent. The more I explore the BANanoServer Demo, the more I am seeing how powerfully simple (and fun) it is to create PWA solutions with BANAno Server. B4J and BANano are amazing (especially if you have ever worked with raw HTML/CSS/javascript and PHP, etc. before)!

I hope this all makes sense for anyone else trying to figure this part out. I am now learning how to use WebSockets and SSL in this environment.
 
Upvote 0
Top