Skip to content

xouabita/tornado-chat

Repository files navigation

Chat With Tornado

Simple chat with tornado, websockets, elasticsearch and angularjs.

Usage

Installation

Requirements

  • Elasticsearch
  • nodejs
  • bower
  • pip packages:
    • elasticsearch-py
    • tornado

To install dependencies:

bower install
npm install

Run the app

gulp (serve)    # run the tornado app and watch for styles & scripts
gulp build      # build scripts & styles
gulp runserver  # run the tornado server
gulp watch      # watch styles & scripts

API

Chatrooms

Create a new chatroom

POST /chatrooms
{
  "title":"test"
}

Get the chatrooms list

GET /chatrooms

Delete a chatroom

DELETE /chatrooms/:room_id

Messages

Post a message

POST /chatrooms/:room_id
{
  "username":"user",
  "message":"foobarlol"
}

Screenshots

home chatroom

About

Simple chat with tornado and websockets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published