Skip to content

megaserg/reactchat

Repository files navigation

Reactchat

Reactive, realtime multiuser chat.

Built with React, Go, and RethinkDB.

How to start your own instance

  • Install and start RethinkDB (port 28015):
$ rethinkdb
go get -u github.com/mitchellh/mapstructure
go get -u github.com/gorilla/websocket
go get -u github.com/dancannon/gorethink
  • Start the Go backend (port 4000):
$ go run *.go
  • Install Node dependencies:
$ npm install
  • Start the frontend with live update (port 4001):
$ webpack-dev-server --port 4001
  • Alternatively, build the JS bundle (assets/bundle.js):
$ webpack

Acknowledgements

Developed during the course Learn How to Develop Realtime Web Apps.

License

MIT

TODO

  • Messages are not always ordered by time
  • Users are not always ordered by name
  • Server goes crazy if you stop DB midway
  • TTL for users being online

About

Reactive, realtime multiuser chat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published