This project is for demo purpose, it is build with webcomponents + webpack + javascript. Simple chat application that matches user's input message with pre defined constants and reply accordingly. Sample video - https://app.screencast.com/uEY0cMuqMfjxX NOTE: there is no submit button press enter to send the message
Install dependencies
npm install
Run project in browser
npm run serve
src
- Entire code is in this file
src > components
- Contains different components at the moment has only one component which is chat
utils > helper
- Contains helper function to find the response of the user's message
utils > responses
- Constant file of the messages for the user's input
app.js
- Loads the web components
index.html
- add chat tags here
- We can add more features for accessibility
- We can imporve styling
- We can optimize webcomponent code more efficiently
- Add more validation for input field
- We can connect with third party bot or our own.
- Add production mod where we can cache and minify js css and html
- Many more :)