Skip to content

AprilArcus/rethink-react-example-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example-chat

Example chat app using react-rethinkdb

Forked from react-rethinkdb/examples/chat by Mike Mintz. Work in ESNext or CoffeeScript, both Node and webpack are configured to load .js, .json, .coffee, .coffee.md, .litcoffee and .cson files.

Uses babel-plugin-react-transform for hot-loading JS files, and the older react-hot-loader as a post-compile stage to hot-load coffeescript.

Nodemon will ignore changes to client/src/* such that changes to client-side code will not reboot the API server; however the reciprocal case does not yet hold: changes to server code will force an unnecessary reboot and recompile of the dev server. You may work around this by running npm run watch:server and npm run watch:client in separate shells in lieu of npm start. The client will bind port 3000 and the server will bind port 3001. The client obtains the server's address in client/src/AuthWrapper.

How do I run this?

  • Start a RethinkDB server on localhost port 28015
  • Run npm install to set up the app
  • Run npm run resetdb to reset a database with name react_example_chat
  • Run npm start to start the web server
  • Navigate to http://localhost:3000/ in your browser

You can edit server/config.cson if you want to use different parameters.

If you open two browsers, navigate to the app, and log in as two different users, you can have them chat with each other in realtime.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published