3 ms·
Web Components are highly versatile. I built a chat app with GitHub OAuth login, blockchain-based authentication and access control using only 120 lines of HTML
by socketcluster 3y ago
Web Components are highly versatile. I built a chat app with GitHub OAuth login, blockchain-based authentication and access control using only 120 lines of HTML in a single .html file with no custom code, no framework, no custom server-side code. It can run anywhere:
https://github.com/Saasufy/chat-app/blob/main/index.html#L23-L115 https://github.com/Saasufy/chat-app/blob/main/index.html#L23...
You can try the app here (if you have a GitHub account): https://saasufy.github.io/chat-app/ https://saasufy.github.io/chat-app/
The backend is serverless built using Saasufy.com - The platform/startup I'm working on currently: https://saasufy.com/ https://saasufy.com/
An effective approach I've found is to create components which consume slotted <template> elements to produce HTML that can be fully customized and injected with data they loaded from a back end. This allows you to create components which are declaratively bound to specific back end resources.
- yuretz 3y ago> ... with no custom code ... Except all the custom code in saasufy-components
- socketcluster 3y agoIt's generic code, not specific to the application as it can be reused for any application. There is code behind native HTML tags too but we don't say that writing HTML is writing code, the browser handles that.