Coder Social home page Coder Social logo

chatroom's Introduction

Chatroom

This is a really simple proof-of-concept chat app using websockets, written in node.js with socket.io and express. No database involved!

You can see a live demo at http://tomds-chatroom.jit.su/, hosted on nodejitsu, which as far as I can tell from my limited experience, is excellent :)

What it does

As I say, it is a very basic implementation and not a fully-featured chat app. Features include:

  • Send messages to everyone (no private messaging)
  • See who else is connected
  • Change your username (checks for username invalid, in use etc.)
  • Username remembered in a cookie for next time (you get a guest username the first time you log in)

There is no logging or history of any kind; if you reload the page then you lose your chat history. And there's no private messaging or multiple channels.

Installation

Assuming you already have node.js installed, go to your checkout and type:

npm install

Then run the server with:

node server.js

You should now have a server running on localhost:8000.

Hosting

I have successfully deployed this code to nodejitsu and heroku, although I would recommend nodejitsu as heroku didn't seem to work very well, possibly due to dodgy websockets support.

chatroom's People

Contributors

tomds avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  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.