2021-05-03 23:46 GMT+02:00, Abhiraam Eranti <
abhira...@gmail.com>:
> also would like to add that using the raw github links instead of relative
> imports makes development harder. While yes, you could change it when
> making commits to github, it all seems really tedious. There are also other
> services besides firebase for hosting like aws, heroku, render, etc.
You could use:
> brython-cli --modules
to create your own distribution and 'convert' your py files to js
files that are loaded with the initial request. This way you do not
need to import py files [1].
The py import is done using AJAX requests and to do so you need a
server that is responding to the requests. In GH-pages you do not have
the server part so it is better to load everything when the web page
is loaded.
Tomorrow I will publish a new post [2] (in spanish) detailing how to
do so in case you want to have a look.
[1]
https://brython.info/static_doc/en/import.html
[2]
pybonacci.org
>>> <
https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault>
>>> in
>>> a listener for link click events.
>>>
>>> I'm not against firebase if I understand the purpose of it. So far I
>>> don't see the purpose. Brython + github can do all the things you
>>> mentioned.
>>>
>>>
>>> On Mon, May 3, 2021 at 6:20 PM Abhiraam Eranti <
abhira...@gmail.com>
>>> wrote:
>>>
>>>> firebase is suited for dynamic applications, while github pages is
>>>> tailored for static sites only. If won't really work if you require
>>>> links/routers and if your app is more than one page; My app didn't work
>>>> on
>>>> github pages because of its use of query string and client-side
>>>> routing,
>>>> but it worked on firebase. You don't have to use firebase, but it's
>>>> honestly pretty easy to set up.
>>>>
>>>> On Mon, May 3, 2021 at 9:14 AM Edward Elliott <
ese...@gmail.com> wrote:
>>>>
>>>>> What are "dynamic" applications in this context? Every application is
>>>>> static in some regards and dynamic in others.
>>>>>
>>>>> What particular advantages does firebase offer? I browsed the website
>>>>> <
https://firebase.google.com/>, all I see is a lot of marketing
>>>>> fluff. Why would you tie yourself to Google just to run a web app?
>>>>> What
>>>>> can you do on firebase that you can't do on github?
>>>>>
>>>>> As best I can tell <
https://firebase.google.com/docs/web/learn-more>,
>>>>>> <
https://groups.google.com/d/msgid/brython/d357cacf-8bdd-4397-bd34-62e5b8a16421n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "brython" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to
brython+u...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>>
https://groups.google.com/d/msgid/brython/CAF1%3DpDmEXyUOkK4cUci%2B8dxeFoD5toLyXRLPF%3DLrDTY4WSNeDw%40mail.gmail.com
>>>>> <
https://groups.google.com/d/msgid/brython/CAF1%3DpDmEXyUOkK4cUci%2B8dxeFoD5toLyXRLPF%3DLrDTY4WSNeDw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "brython" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to
brython+u...@googlegroups.com.
>>>>
>>> To view this discussion on the web visit
>>>>
https://groups.google.com/d/msgid/brython/CAGTurTUz15dJu8pRwHcN7ndPOGXxdUDDWTYF7HCnwREmfMmv7A%40mail.gmail.com
>>>> <
https://groups.google.com/d/msgid/brython/CAGTurTUz15dJu8pRwHcN7ndPOGXxdUDDWTYF7HCnwREmfMmv7A%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "brython" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to
brython+u...@googlegroups.com.
>> To view this discussion on the web visit
>>
https://groups.google.com/d/msgid/brython/6b0938da-1551-43de-bb22-6a5594dcf1abn%40googlegroups.com
>> <
https://groups.google.com/d/msgid/brython/6b0938da-1551-43de-bb22-6a5594dcf1abn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "brython" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
brython+u...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/brython/CAGTurTXy3qkTfPvHrM22QP35qJRcBvk_MV_%2B-rPYpTdQdY2q0g%40mail.gmail.com.
>