create-bluecopa-react-app
v1.0.41
Published
CLI tool to create bluecopa React applications
Downloads
584
Maintainers
Readme
create-bluecopa-react-app

A CLI Tool for Bluecopa React Applications
A command-line interface for bootstrapping modern React applications with Bluecopa integration, featuring opinionated best practices and pre-configured tooling.
Table of Contents
- Version
- Installation
- Requirements
- Configuration
- Features
- Usage
- API Documentation
- Examples
- Development
- Contributing
- License
Version
Current version: 1.0.5
Installation
npm install -g create-bluecopa-react-app
# or
pnpm add -g create-bluecopa-react-appRequirements
- Node.js >= 18.0.0
- npm >= 9.0.0 or pnpm >= 8.0.0
Configuration
The CLI uses environment variables for configuration:
# Optional configuration
export BLUECOPA_BOILERPLATE_REGISTRY=https://registry.npmjs.orgFeatures
- 🚀 Modern React Stack: React 18, TypeScript, React Router v7, Vite 6
- 🌐 Microfrontend Support: Single-spa compatible with module federation
- 📊 Data Visualization: Recharts integration for charts and analytics
- 🎨 UI Components: shadcn/ui components built on Radix UI primitives
- 📡 Bluecopa React Components: Pre-configured
@bluecopa/reactpackage with hooks (includes TanStack Query integration) - 🎯 Type Safety: Full TypeScript support
- 📱 Responsive Design: Tailwind CSS v4 with mobile-first approach and Bluecopa design system
- 🛠️ Development Tools: ESLint, TypeScript checking, and Vite fast build system
- ⚡ Fast Development: Hot module replacement with Vite
- 🔄 Server-side Rendering: React Router v7 with SSR support
- 🌙 Dark Mode: Built-in theme switching with next-themes
- 🗂️ Data Tables: TanStack Table with sorting, filtering, and pagination
- 🎯 Drag & Drop: DND Kit integration for interactive interfaces
Usage
Creating a New Application
# Create new app with default template
create-bluecopa-react-app my-dashboard
# Create new app with shadcn/ui template
create-bluecopa-react-app my-dashboard --template shadcn
# Or use npx
npx create-bluecopa-react-app my-dashboard
npx create-bluecopa-react-app my-dashboard --template shadcnAvailable Templates
- Default Template: Basic React Router setup with essential components
- shadcn Template: Full-featured template with shadcn/ui components, data tables, charts, and dark mode support
CLI Options
| Option | Description |
|--------|-------------|
| --skip-install | Skip dependency installation |
| --template | Specify template (default, shadcn) |
| --help | Show help information |
API Documentation
create-bluecopa-react-app [project-name] [options]
Creates a new Bluecopa React application.
Parameters:
project-name: Name of the new project directoryoptions: CLI options (see above)
Returns:
- Creates project structure
- Installs dependencies
- Configures environment
Examples
Basic Usage
create-bluecopa-react-app my-dashboardSkipping Dependency Installation
create-bluecopa-react-app my-dashboard --skip-installUsing npx (Recommended)
npx create-bluecopa-react-app my-dashboardDevelopment
Available Scripts
npm run dev- Start Vite development server with hot reloadnpm run build- Build for production (TypeScript + Vite optimization)npm run start- Start production build locallynpm run preview- Preview production build locallynpm run lint- Run ESLint for code qualitynpm run lint:fix- Fix linting issuesnpm run type-check- Run TypeScript type checking without emitting filesnpm run clean- Clean build artifacts and dependencies
Technologies Used
- React 18 - Modern React with concurrent features
- React Router v7 - Modern routing with SSR support
- Vite 6 - Fast build tool and development server
- TypeScript - Full type safety and developer experience
@bluecopa/react- Bluecopa-specific React components and hooks- shadcn/ui - Accessible component library built on Radix UI
- Radix UI - Unstyled, accessible UI primitives
- TanStack Table - Headless table library for React
- Recharts - Composable charting library for React
- DND Kit - Drag and drop toolkit for React
- Tailwind CSS v4 - Utility-first CSS framework with Bluecopa design system
- next-themes - Theme switching with dark mode support
- Lucide React - Beautiful, customizable icons
Monorepo Integration
This CLI tool is part of the Bluecopa UI monorepo and integrates with the following packages:
@bluecopa/react- Bluecopa-specific React components and hooks
Standalone Development
The generated applications can also be developed independently:
- Self-contained: All dependencies are properly installed
- Environment setup: Includes proper environment variable configuration
- Build optimization: Uses Vite for fast development and production builds
- Deployment ready: Includes Docker configuration and deployment guides
