React Fetch & Search is a modern single-page React app that loads sample people data from JSONPlaceholder and lets you filter the list instantly from the browser. The UI is powered by Bulma with a light layer of custom styling.
- ⚛️ Functional React 19 components with hooks and graceful loading/error states
- 🔍 Instant client-side filtering with accessibility-friendly messaging
- 🎨 Bulma design system plus refreshed custom theme
- 🚀 Ready-to-ship GitHub Pages deployment using
gh-pages
Live Demo: https://faroukchebaiki.github.io/react-fetch-and-search/
git clone https://github.com/faroukChebaiki/react-fetch-and-search.git
cd react-fetch-and-search
npm install
npm startThe dev server starts on http://localhost:3000. The project targets Node.js 18 or newer.
npm start– launch the local development server with hot reloadnpm test– run the interactive test runner powered by React Testing Librarynpm run build– create an optimized production bundle inbuild/npm run deploy– publish the latest build to GitHub Pages (gh-pagesbranch)npm run eject– expose the underlying webpack/babel config (one-way operation)
src/App.jsx– root component handling data fetching, search state, and layoutsrc/components/– presentational components (Header,Search,CardList,Card)src/styles.css– custom styles layered on top of Bulmapublic/– base HTML template and static assets
- Ensure the
homepagefield inpackage.jsonpoints to your GitHub Pages URL. - Run
npm run buildto generate the production bundle. - Execute
npm run deployto push the build to thegh-pagesbranch. - Visit
<username>.github.io/<repository>once GitHub finishes publishing.
Released under the MIT License. See LICENSE.md for full details.
© 2022–2025 Farouk Chebaiki