This is LiveLike's new-hire Web SDK code assessment.
![]() |
%!s(int64=3) %!d(string=hai) anos | |
---|---|---|
public | %!s(int64=3) %!d(string=hai) anos | |
src | %!s(int64=3) %!d(string=hai) anos | |
.gitignore | %!s(int64=3) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
db.json | %!s(int64=3) %!d(string=hai) anos | |
package-lock.json | %!s(int64=3) %!d(string=hai) anos | |
package.json | %!s(int64=3) %!d(string=hai) anos | |
rollup.config.js | %!s(int64=3) %!d(string=hai) anos | |
rollup.dev.js | %!s(int64=3) %!d(string=hai) anos | |
routes.json | %!s(int64=3) %!d(string=hai) anos | |
server.js | %!s(int64=3) %!d(string=hai) anos | |
tsconfig.json | %!s(int64=3) %!d(string=hai) anos |
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 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
.
a. It should display a list of existing comments that updates when a new comment is sent or received.
b. It should not display any comments that have been deleted.
b. It should include a way to send comments.
c. It should include a way to switch between different "chat rooms" list of comments.
a. To get lists of comments
b. To create and delete individual comments
c. To get and create users