The objective of this code challenge is to create a library that exposes chat room Web Components with a chat API service.
To start the development environment
$ npm install
$ BIND=127.0.0.1 npm run dev
Then open localhost:8000
in your browser.
This project uses LitElement, which is a Web Component library.
The rollup.config.js
contains the Rollup configuration for building the bundle.
The db.json
file is the "database" for the project that contains all of the starting data.
The server.js
file creates a server using the db.json
file as the data, and is accessible through localhost:3000
.
The /public/index.html
is the file that will be served by the server, and available on localhost:8000
.
When running npm run dev
, Rollup will bundle all of your code into a single file index.js
that will be placed in /public
.
The library exposes a chat room UI, displaying two different "chat-rooms", each chat room includes a way to send comments and display a list of existing comments that updates when a new comment is sent or received