Skip to content

XilongPei/chatroom

 
 

Repository files navigation

ChatRoom

Content

  • This is an simple chatroom program developed by webpack, jquery and websocket.
  • In this chatroom, you can broadcast messages to all participants or someone you wanto talk with.
  • At the moment you open a page, we'll assign a random nickname for you. But, you can change it as your wish. We'll synchronize data for other clients.

Start

dependencies

After clone or download this project, you should install dependencies firstly.

npm install

develop

You can execute

npm start

to start webpack develop server, then you can debug it.

produce

If you wanto release a production version, then execute

npm run build

to compile and merge source code.

Then excute

node app.js

to start a server which is established by node framework koa.

ws

Last but not least, don't forget to execute

node ws.js

to start websocket server. Otherwise, you'll see nothing on the page.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.7%
  • CSS 20.4%
  • HTML 7.9%