Example of an React/Redux application with webpack including server-side rendering.
- React
- Redux
- Server-Side Rendering
- styled-component
- Webpack 5
- Docker
Webpack compile javascript for usage in server and client via two separate configurations.
Use Redux Ducks Pattern in codebase.
We use dotenv, so make sure you have this environment variables ready in .evn
API_HOST=https://jsonplaceholder.typicode.com
SERVER_PORT=3000
SERVICE_HOST=http://localhost:3000
npm install
npm run dev
Make sure you have already installed Docker Engine.
$ docker -v
Docker version 20.10.7, build f0df350
npm run docker:up