Repository navigation
Self-hosted and fully offline? #807
Description
Activity
hi @waveflip
Although LiveCodes is a client-side app with no backend and the fact that you can specify the
appUrlin the SDK embed options, which can point to a local instance of LiveCodes (e.g. running on a local server onhttp://localhost:8080/), however, many of the resources are loaded from CDNs. So, currently, you still need to be connected to the internet.I do plan to support running fully offline.
Thank you.Reacted by waveflip, LeeWendao, Michael Kreil, Nuno Luciano, John, Bazyli Cyran and zezezeHopely want fully offline feature.😭
Hi @waveflip @WendaoLee @MichaelKreil
This PR ( #858 ) tries to address this issue.
Would you please have a look and see if this is what you want?
Suggestions are welcome.As far as I can see, some frontend assets are still loaded from external sources and could be integrated into the project. For example:
- https://cdn.jsdelivr.net/npm/@live-codes/[email protected]/...
- https://cdn.jsdelivr.net/npm/@snackbar/[email protected]/...
- https://cdn.jsdelivr.net/npm/[email protected]/...
- https://cdn.jsdelivr.net/npm/[email protected]/...
- https://cdn.jsdelivr.net/npm/[email protected]/...
- https://cdn.jsdelivr.net/npm/luna-...
- https://cdn.jsdelivr.net/npm/[email protected]/...
- https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js
- https://live-codes.github.io/livecodes-sandbox/dist/v8/
Hi @MichaelKreil
Sorry for the very late reply. I have not been able to work on this lately.All of the assets you mentioned will be served from the local docker setup.
I have not yet published a cloud instance for demonstrating this, but you can see the video in the PR that I go fully offline with airplane mode and it continues to work.livecodes-local-modules.mp4
I just wanted to see if this is what you want implemented.
I still have some work on this, and I will let you know when ready.Thank you and sorry for the late reply!
Reacted by LeeWendao and Bazyli Cyran
Hello,
When attempting to run the Livecodes SDK locally, it appears the main application requires a network connection to livecodes.io for some services. I would like to run everything 100% locally without a need for a network connection. I only need support for HTML, CSS, JS languages.
Is this possible?
Thanks