- 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.
After clone or download this project, you should install dependencies firstly.
npm install
You can execute
npm start
to start webpack develop server, then you can debug it.
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.
Last but not least, don't forget to execute
node ws.js
to start websocket server. Otherwise, you'll see nothing on the page.