my-react-pr
v1.0.8
Published
π CLI tool to create a production-ready React app with Vite, Tailwind CSS, React Router, Redux, Context API, and shadcn/ui pre-configured
Maintainers
Readme
π my-react-pr
β‘ Create a production-ready React app in seconds with all modern tools pre-configured!
Installation | Features | Usage | What's Included | Contributing
π¦ Installation & Quick Start
Option 1: Using npx (Recommended - No installation needed)
npx my-react-pr myappOption 2: Install globally
npm install -g my-react-pr
my-react-pr myappThat's it! Your fully configured React app is ready in seconds! π
β¨ Features
This CLI tool creates a production-ready React application with all the modern tools and libraries pre-installed and pre-configured:
π― Core Technologies
- βοΈ React 18 - Latest React with Hooks
- β‘ Vite - Lightning-fast build tool and dev server
- π¨ Tailwind CSS - Utility-first CSS framework
- π£οΈ React Router - Client-side routing
- π Redux Toolkit - State management
- π React Context API - Alternative state management
- π¨ shadcn/ui - Beautiful, accessible components
- π¦ TypeScript Ready - Type-safe development
π Developer Experience
- β‘ Hot Module Replacement (HMR) - Instant updates
- π₯ Optimized Build - Production-ready bundles
- π Pre-configured ESLint & Prettier - Code quality out of the box
- π― Project Structure - Best practices folder organization
- π§ Pre-configured Scripts - Ready to use commands
π What's Included
When you create a new project with my-react-pr, you get:
π¨ UI & Styling
- β Tailwind CSS fully configured
- β shadcn/ui components pre-installed
- β Responsive design utilities
- β Dark mode support ready
ποΈ State Management
- β Redux Toolkit with store setup
- β React Context API examples
- β Pre-configured slices and actions
π£οΈ Routing
- β React Router v6 configured
- β Route examples included
- β Protected route setup ready
β‘ Build & Dev Tools
- β Vite with optimized config
- β Fast refresh enabled
- β Production build optimized
- β Path aliases configured
π Project Structure
myapp/
βββ src/
β βββ components/ # Reusable components
β βββ pages/ # Route pages
β βββ store/ # Redux store
β βββ context/ # React Context
β βββ hooks/ # Custom hooks
β βββ utils/ # Utility functions
β βββ styles/ # Global styles
βββ public/ # Static assets
βββ package.json # Dependenciesπ¬ Usage
Step 1: Create your app
npx my-react-pr myappStep 2: Navigate to your app
cd myappStep 3: Install dependencies
npm installStep 4: Start development server
npm run devYour app will be running at http://localhost:5173 π
π Available Scripts
After installation, you can use these commands:
npm run dev # Start development server
npm run build # Build for production
npm run preview # Preview production build
npm run lint # Run ESLintπ― Why Use This?
β±οΈ Save Time
Stop spending hours configuring tools. Get everything set up in seconds!
ποΈ Best Practices
Follows industry best practices and modern React patterns.
π§ Production Ready
Everything is configured for production from day one.
π Learning Friendly
Clean, organized code structure perfect for learning and building.
π€ Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
π License
This project is licensed under the ISC License.
π Acknowledgments
- React - UI library
- Vite - Build tool
- Tailwind CSS - CSS framework
- shadcn/ui - Component library
- Redux Toolkit - State management
β Star this repo if you find it helpful! β
Made with β€οΈ by Shivam Yadav
