Giter Site home page Giter Site logo

webim's Introduction

#WebIM ##Summary This is the web-based IM(Instant Messager) server.

You can login to the WebIM by your own ID and password, then chat with your friends in the browser. If your friends are online too, they will get the words you just wrote immediately. If they are offline, they will get your words next time they login.

##Implementation WebIM is very simple, it's based on node.js as the web server, and redis as the background storage.

Long Polling is used to keep active user get messages immediately. It's hopeful pc and mobile browser can chat via WebIM.

##Installation You should have node.js and redis installed correctly.

After download this project, initialize the redis database with sample data:

$ cd webim
$ ./initredis.sh

Note! this command will remove all data in your current redis database!

Then start WebIM:

$ node app.js

now, open browser, access http://localhost:3000, login with ID 10001, password 123456. In another browser, login with ID 10002, password 123456. Then chat.

webim's People

Contributors

zenkj avatar

Watchers

Robert Liu avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.