A clean, modern React template with GitHub Pages deployment ready to go! Perfect for quickly spinning up React projects with automated deployment.
- 🎯 React 19 - Latest React with modern features
- 🚀 GitHub Pages Ready - Automated deployment with gh-pages
- 🧪 Testing Suite - Pre-configured Jest and React Testing Library
- 📱 Responsive Design - Mobile-first approach
- ⚡ Fast Development - Hot reload and instant feedback
- 🔧 Zero Configuration - Works out of the box
- 📦 Optimized Build - Production-ready bundling
- Node.js (v16 or higher)
- npm or yarn
- Git
-
Use this template or clone the repository:
git clone https://github.com/BaseModMaker/React-Pages-Template.git cd React-Pages-Template -
Install dependencies:
npm install
-
Start development server:
npm start
-
Open your browser and navigate to
http://localhost:3000
This template is configured for seamless GitHub Pages deployment:
-
Build and deploy:
npm run deploy
-
That's it! Your app will be live at
https://yourusername.github.io/your-repo-name
- Update the
homepagefield inpackage.jsonto match your GitHub Pages URL - Push to your main branch
- Run
npm run deployto build and deploy to thegh-pagesbranch
React-Pages-Template/
├── public/ # Static assets
│ ├── index.html # HTML template
│ ├── favicon.ico # Favicon
│ └── manifest.json # PWA manifest
├── src/ # Source code
│ ├── App.js # Main App component
│ ├── App.css # App styles
│ ├── index.js # Entry point
│ └── index.css # Global styles
├── build/ # Production build (generated)
├── package.json # Dependencies and scripts
└── README.md # This file
| Command | Description |
|---|---|
npm start |
Starts development server on port 3000 |
npm run build |
Creates optimized production build |
npm test |
Runs test suite in watch mode |
npm run deploy |
Builds and deploys to GitHub Pages |
npm run eject |
Ejects from Create React App (irreversible) |
- Open
package.json - Update the
homepagefield:{ "homepage": "https://yourusername.github.io/your-repo-name" }
- Edit
src/App.jsto customize your main component - Modify
src/App.cssfor styling - Update
public/index.htmlfor meta tags and title - Replace
public/favicon.icowith your own favicon
Run the test suite:
npm testThe template includes:
- Jest for unit testing
- React Testing Library for component testing
- Example test in
src/App.test.js
- React 19.1.1 - UI Library
- Create React App - Build toolchain
- GitHub Pages - Hosting platform
- Jest - Testing framework
- React Testing Library - Testing utilities
This project is licensed under the MIT License - see the LICENSE file for details.
- Created with Create React App
- Deployed with gh-pages
- Icons from React Icons
⭐ Star this repo if you found it helpful!
Made with ❤️ by BaseModMaker