This guide provides step-by-step instructions to get a PatternFly React application running quickly using the PatternFly React Seed.
The Quick Start process uses the official PatternFly React Seed repository to scaffold a complete application with pre-configured components, routing, and build tools. This is the fastest way to begin PatternFly development.
- Setup Guide - Prerequisites and setup overview
- Development Environment - Environment configuration
- PatternFly Guidelines - Development best practices
- Common Issues - Troubleshooting setup problems
git clone https://github.com/patternfly/patternfly-react-seedAI Note: This command can be executed by AI assistants to initialize the project.
cd patternfly-react-seedImportant: All subsequent npm commands must be run from this directory.
npm installAI Note:
- AI can run this command after verifying Node.js and npm are properly installed
- This step downloads all required PatternFly and React dependencies
- May take several minutes depending on network speed
npm run start:devImportant Considerations:
- User Recommendation: Run this command in a separate terminal to keep it active
- Default URL: Development server typically runs at
http://localhost:9000 - Additional Information: Check the project's README.md for server configuration details
After completing the setup:
- Check Server Status: Ensure the development server starts without errors
- Access Application: Open
http://localhost:9000in a web browser - Verify Components: Confirm PatternFly components are rendering correctly
- Test Hot Reload: Make a small change to verify live reloading works
The PatternFly React Seed includes:
- Page layout structure
- Navigation components
- Basic routing setup
- Example PatternFly components
- Webpack configuration
- Hot module replacement
- Development server
- Build scripts
- Jest configuration
- Testing utilities
- Example test files
- Explore the Codebase: Review the generated file structure
- Read Documentation: Check PatternFly Guidelines
- Start Development: Begin building your application components
- Configure Environment: Set up Development Environment tools
- Update application name and metadata
- Configure routing for your specific needs
- Add custom components and pages
- Set up version control (if not already done)
- Configure IDE/editor for PatternFly development
- Install additional development tools
- Share environment configuration
- Document custom setup steps
- Establish coding standards and practices
If you encounter issues during setup:
- Verify Prerequisites: Ensure Node.js and npm are properly installed
- Check Network: Confirm internet connectivity for package downloads
- Clear Cache: Try
npm cache clean --forceif installation fails - Port Conflicts: If port 9000 is in use, check for alternative ports
- Permission Issues: On Unix systems, avoid using
sudowith npm
For detailed troubleshooting, see Common Issues.
You've successfully completed the Quick Start when:
- ✅ Repository is cloned without errors
- ✅ Dependencies install successfully
- ✅ Development server starts and runs
- ✅ Application loads in browser at
http://localhost:9000 - ✅ PatternFly components are visible and styled correctly