This is my PET Chat project that I'd like to share with you.
Included Webpack 4 babel 7 styled-components redux redux-thunk socket.io
- 
Clone the branch you need 
- 
Install dependencies via npm npm ior yarnyarn install.
- 
npm run build 
- 
Start web server npm run server.
- 
Open 2 Browser tabs and enter 2 different nicknames. Navigate to http://localhost:5001 
- 
Type anything in a chat. 
.
├── server/                 # Server logic with socket.io
├── src/                    # App folder with all developer stuff
│   ├── actions/            # Redux actions used api/ functions
│   ├── api/                # Axios requests logic
│   ├── components/         # All components used in this project
│   ├── constants/          # Redux constants used in actions/
│   ├── pages/              # The layout of home page
│   ├── reducers/           # Redux reducers
│   ├── store/              # Redux store with initial state
│   ├── static/             # Used to store fonts, icons, images
│   └── ...
├── webpack/                # Modules for webpack I used
├── webpack.config.js       # All webpack settings
└── ...
If you want to build a production version of my app you need to type
npm run build || yarn build
This will create dist folder where everything will be compressed and minified.