Skip to content

alexanderbez/socket-io-chat-room-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Room with Socket.io

A sample chatroom using socket.io and Nodes.js/Express based of the tutorial found here.

Usage

Install dependencies:

$ npm install

Run server locally:

$ npm start

Access the client(s) via visiting: http://localhost:3000

App structure:

.
├── api                   # API files
|   ├── router            # API router files
|   |   ├── home.js       # API routes
|   |   ├── index.js      # Router exports (mounts routes)
│   ├── socket            # API socket files
|   |   ├── index.js      # Server Socket.io implementation
│   └── index.js          # API exports
├── assets                # Client side files
|   ├── js                # Client javascript files
|   |   ├── chatroom.js   # Client Socket.io implementation
├── index.html            # Main view
└── server.js             # Express entry point file

Note: Runs on Node.js v4.2.2+

About

A sample chatroom using socket.io and Express

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published