GaoleMeng / chatapp

ReactJS and Socket.IO Chat Application

Home Page:http://danialk.github.io/blog/2013/06/16/reactjs-and-socket-dot-io-chat-application/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fullstack Realtime Chat Application

Thanks to the below blog posts and documentations:

ReactJS and Socket.IO Chat Application

Real time data flow with Redux and Socket.io

Server Rendering

A sample Docker workflow with Nginx, Node.js and Redis

Having subdomain of namecheap domain point to droplet

Keywords

Docker, Nginx, redis, docker-compose, Ubuntu, DigitalOcean React, Redux, Socket.io, ES6, Babel, webpack, express, server-side rendering, cookies

Running it

Simply run docker-compose build && docker-compose up and go to localhost:8080

To run the Node server, first, grab the dependencies:

yarn to install all the dependencies by yarn

Then build and run the app like so:

npm run dist to build the frontend

npm run build to build the backend

redis-server to start a redis server

npm run serve to start the backend server

And navigate to localhost:3000 and chat!

For development, run:

redis-server to start a redis server

npm run dev to start watching the frontend

npm start to start a backend nodemon server

About

ReactJS and Socket.IO Chat Application

http://danialk.github.io/blog/2013/06/16/reactjs-and-socket-dot-io-chat-application/


Languages

Language:JavaScript 76.1%Language:HTML 9.8%Language:CSS 8.1%Language:Nginx 6.1%