kweb-core
kweb-core copied to clipboard
How to: manage session?
KWeb has a great potential. But I miss examples on how to do the usual stuff. For example, It's not clear from the documentation which state of the server is shared among every client.
In particular, how to get separate sessions as a classical website with login?
We definitely need more comprehensive examples illustrating best practices for things like user management.
Kweb gives full access to both local and session storage via Doc.localStorage and Doc.sessionStorage, but currently you need to build your user auth on top of those.
Thx - I'm new with ktor, but is there a way to reuse ktor implementation?
Hello,
I will conduct an example this evening
Viele Grüße,
Frank
Am 16.06.2021 um 16:47 schrieb Gilles Barbier @.***>:
Thx - I'm new with ktor, but is there a way to reuse ktor implementation?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
@frnknglrt Thank you, that would be great :) Would kweb-demos be the right place for it?
I’ll make you a pull request there
Viele Grüße,
Frank
Am 16.06.2021 um 16:53 schrieb Ian Clarke @.***>:
@frnknglrt Thank you, that would be great :) Would kweb-demos be the right place for it?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
I just did a starter template with a menu and a few routes - based on tailwind. Btw it's a great framework to use with Kweb. It took me a few days. It's not that long but can be discouraging. The main issue is that there is plenty of ways of doing it - the lack of guidelines is an issue.
Sidenote: I'm building myself a framework at infiniticio/infinitic to make distributed systems easy. I'm trying to use KWeb to propose a dashboard - as there will be a lot of dynamic contents. Question for you @sanity : what are the implications of your licence? Can I distribute a dashboard using Kweb within Infinitic?
@geomagilles I'll check out tailwind.
To your second question, Kweb is released under the LGPL, which is a "non-viral" license. In summary, you can build on Kweb and distribute whatever you build, but if you modify Kweb and wish to distribute that modified version, you must make the modified source for Kweb available. You may find this FAQ helpful.
Best of luck with your project, please let us know how you get along :)
I see the PR in kweb-demos. It's a great start.
Honestly, I state again that KWeb has great potential, but we need more libraries to extend the framework (like kweb-auth for authentification, kweb-router for routing, maybe kweb-template for templating ...) or alternatively a clear way to use existing ktor developments.
Btw, keep the good works and congrats!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.