Simple central system for a workshop where developers will create a tiny frontend to send chat messages to the main system, which will display them.
View the app over here: https://workshop-fe-chat.web.app/
Workshop attendees can get started with a blank Lit application over here: https://webcomponents.dev/edit/sag8JPGo4PoZSmbNKrYC/index.ts
When people add new messages to the firestore, they are automatically shown "chatbox-style" in the application.
I recommend setting up a Stackblitz environment like this to give some pointers on how to get started.
The workshop host can have the application open on their computer and walk around help the attendees with their questions and problems.
Create a new Firebase application and under the database menu, create a new collection called chat
.
Add a default (welcome) message that can be shown during the start of the workshop. The Firebase schema with types is as following:
{
"username": String,
"message": String,
"timestamp": Timestamp
}
Be sure to set your own apiKey
and projectId
in src/controllers/chat.controller.ts
to connect to your own firestore instance.
$ npm install
$ npm start
Pick whatever environment you like: Firebase Hosting is free and easy to use, but you could also use any other static site host.
Just run npm run build
and deploy the contents of the dist
directory.
Via Arcady we can provide you with a personalized workshop or training using Web Components or any of the other big frontend frameworks. 🐻❤️🖥