This is LiveLike's new-hire Web SDK code assessment.
|
3 years ago | |
---|---|---|
public | 3 years ago | |
src | 3 years ago | |
.gitignore | 3 years ago | |
README.md | 3 years ago | |
db.json | 3 years ago | |
package-lock.json | 3 years ago | |
package.json | 3 years ago | |
rollup.config.js | 3 years ago | |
rollup.dev.js | 3 years ago | |
routes.json | 3 years ago | |
server.js | 3 years ago | |
tsconfig.json | 3 years ago |
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 should expose a chat room UI
The library should expose methods:
Add TypeScript interfaces/types to exposed methods.