How lucienbouletroblin/pwa-react-example works
This is a React/Redux progressive web app demonstrating an offline-capable CRUD workflow for posts. On opening the home screen, the app fetches posts from JSONPlaceholder; the screen also exposes create, update, and delete actions, with mutations configured for Redux Offline commit/rollback handling. The interface is composed through a shared layout and home views, while Redux combines home and UI state. The README documents the PWA and CRUD scope; sampled files show the fetch and mutation request definitions, but not the full view-to-action wiring or reducer behavior for home posts.
Main entry points: Home.js Home screen · src/index.js React bootstrap · Main.js Home content · reducers/index.js Root reducers
Components 19
App runtime
- React bootstrap
src/index.js - App router
src/App.js - Configured store
src/store/configureStore.js - Service worker registration
src/registerServiceWorker.js
Shared interface
Home workflow
- Home screen
src/modules/home/components/home/Home.js - Home container
src/modules/home/components/home/HomeContainer.js - Home content
src/modules/home/components/home/Main/Main.js - Home sidebar
src/modules/home/components/home/SideBar/SideBar.js - Fetch posts view
src/modules/home/components/home/Main/GetHome/GetHome.js - Post mutation view
src/modules/home/components/home/Main/CreateHome/CreateHome.js
Redux state
- Root reducers
src/reducers/index.js - UI state
src/modules/common/ducks/ui/reducers.js - UI actions
src/modules/common/ducks/ui/actions.js - Post actions
src/modules/home/ducks/home/actions.js - Post state
src/modules/home/ducks/home/reducers.js
Other components
- User
- JSONPlaceholder API
Connections 15
- React bootstrap → Configured store: provides store
src/index.js - React bootstrap → App router: renders
src/index.js - React bootstrap → Service worker registration: registers
src/index.js - Configured store → Root reducers: configures with
src/store/configureStore.js - Root reducers → Post state: combines
src/reducers/index.js - Root reducers → UI state: combines
src/reducers/index.js - App router → Home container: routes to
src/App.js - Home container → Home screen: renders
src/modules/home/components/home/HomeContainer.js - Home screen → Layout: renders
src/modules/home/components/home/Home.js - Layout → Navbar: renders
src/modules/common/components/Layout/Layout.js - Home screen → Home content: renders
src/modules/home/components/home/Home.js - Home screen → Home sidebar: renders
src/modules/home/components/home/Home.js - Home content → Fetch posts view: renders
src/modules/home/components/home/Main/Main.js - Home content → Post mutation view: renders
src/modules/home/components/home/Main/Main.js - Post actions → JSONPlaceholder API: requests posts
src/modules/home/ducks/home/actions.js