small example of webcomponents used to create a tiny chat app with persistent chat in
localstorage
.
clone the git repository git clone
recommend running nvm use
(does not work with NVM for Windows) or nvm use 12.18.3
install dependencies npm i
run dev server npm run serve
run build process npm run build
with dev server go to http://localhost:8080
or open the index.html
if you ran npx run build
open the dist/index.html
file
type in your desired username, there is no authentication
add a friend in upper left corner, type any name
you can "login" as any of your 'friends' and see the conversation from the other side but first you must reload the page
if you reload the page you must login again, chats are persistent within the storage
limitations of localStorage
.