This is a simple sample of an online chat server.
- Have Python 2.7 installed globally;
- Have pip and virtualenv installed globally.
- Download this repository
$ git clone https://github.com/shisaq/chat-server.git - On the root of this repository, open your terminal
- Get the permission to read, write and execute:
$ chmod 755 ./run.sh - Run
$ ./run.shto install dependencies - Open your browser, type
localhost:5000or127.0.0.1:5000 - (optional) If you prefer, you can run
npm installto customize the front-end works
- Scorll bar cannot scroll to bottom automatically when finished initially loading the room messages.
- Messages actually store in localStorage. They may conflate when another user login at the same computer with the prior one.
- It has not fitted for multiple sizes of screens.
- Sometimes it may judge a user offline, due to unstable network.
- Rooms list is an array now. But it should be an object, including every item named by the room name. Just like Room messages object.
MIT








