React-Typescript-Redux boilerplate with docker to run the code in isolated docker env. Folder structure added to get started with basic web-applications. Docker setup to cache node_modules and reinstall packages when package.json changes. Using Chokidar to ensure HMR works with docker.
- Docker
- Docker Compose
- Chokidar (hot reloading)
- React biolerplate with Typescript
create-react-app
- Redux (Thunk)
- Nginx (prod)
- Prettier
- ESLint
git clone git@github.com:akash4393/react-typescript-redux-docker.git
cd ./react-typescript-redux-docker
docker compose up --build
- Go to http://localhost:3000
docker compose -f docker-compose.prod.yml up --build
- Go to http://localhost:1337
- Stop process
Cmd + C
docker compose down
npm run lint
(Auto runs on build & --fix on commit)
- Add the following to vscode settings.json
"[typescriptreact]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.insertSpaces": true,
"editor.tabSize": 2,
},
"[typescript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.insertSpaces": true,
"editor.tabSize": 2,
},
- Network timeout error on docker compose up
- Rerun docker compose command