Thanks to the below blog posts and documentations:
ReactJS and Socket.IO Chat Application
Real time data flow with Redux and Socket.io
A sample Docker workflow with Nginx, Node.js and Redis
Having subdomain of namecheap domain point to droplet
Docker, Nginx, redis, docker-compose, Ubuntu, DigitalOcean React, Redux, Socket.io, ES6, Babel, webpack, express, server-side rendering, cookies
Simply run docker-compose build && docker-compose up
and go to localhost:8080
yarn
to install all the dependencies by yarn
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
redis-server
to start a redis server
npm run dev
to start watching the frontend
npm start
to start a backend nodemon server