Skip to content

KodeKreatif/brol

 
 

Repository files navigation

brol

Build Status

Requirements

  • MongoDB
  • Node v6.x
  • Redis

Run

With docker, ./deploy.sh

or

$ npm install -g yarn browserify uglifyjs
$ yarn
$ npm run init
$ npm run dev

then open http://localhost:3000

Test

$ npm run test

Emitters

Client

  • authentication, ({username : String, password : String}) - login into the socket
  • message, ({sender: String, recipient: String, message: String, type : String }) - send message.
  • fetchMessage, ({room : String})
  • contactedUpdate, currentUsername

Server

  • On progress...

Events

Client

  • authenticated - when authentication succeeded.
  • unauthorized - when authentication failed.
  • message, ({sender: String, recipient: String, message: String, type : String }) - when message arrived.
  • contactedUpdate, [] - updated contacted list from server.
  • onlineUsers, [] - server send online users list from server
  • messages, { rooms : String, messages : [] } - messages list from server

Server

  • On progress...

TODO

  • API (basic user registration, fetch unread, etc)
  • Messages queue
  • Messages promise
  • Message status (sent, read, etc)
  • Groups

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.3%
  • HTML 1.6%
  • Shell 1.1%