A modern React application template built with Vite, featuring a clean project structure and optimized development setup.
react-skeleton-prism/
├── dist/ # Production build output (generated)
├── node_modules/ # Installed dependencies (generated)
├── public/ # Static assets served as-is
├── src/
│ ├── components/ # Reusable React components
│ │ ├── Header.jsx
│ │ ├── SideMenuButton.jsx
│ │ └── SiteLayout.jsx
│ ├── styles/
│ │ └── app.css # Global styles
│ ├── index.html # HTML entry (Vite expects at project root or configured root)
│ ├── App.jsx # Root component
│ └── main.jsx # React application entry point
├── .gitignore
├── package-lock.json
├── package.json # Project scripts and dependencies
├── vite.config.js # Vite configuration
└── README.md # Project documentation
- Node.js (v16 or higher)
- npm (v7 or higher)
- Clone the repository:
git clone <repository-url>
cd react-skeleton-prism- Install dependencies:
npm installTo start the development server:
npm run devThis will:
- Start Vite's development server with hot module replacement (HMR)
- Open the application at
http://localhost:2800 - Watch for file changes and automatically rebuild
To create a production build:
npm run buildThe build process will:
- Create an optimized production build in the
dist/directory - Bundle and minimize all JavaScript files
- Process and optimize CSS
- Copy static assets
- Generate source maps
Vite's production build includes:
- Code splitting for optimal loading
- Tree shaking to eliminate dead code
- Asset optimization and minification
- CSS minification and optimization
To preview the production build locally:
npm run previewThis will serve the production build at http://localhost:2800.
- ⚡️ Lightning-fast development with Vite
- 🔄 Hot Module Replacement (HMR)
- ⚛️ React 18 with latest features
- 📁 Clean and organized project structure
- 🎨 Global CSS with modular styling support
- 🧩 Component-based architecture
react: ^18.3.1react-dom: ^18.3.1
vite: ^5.4.0@vitejs/plugin-react: ^4.3.0
The project uses a custom Vite configuration (vite.config.js):
- Source code is located in the
srcdirectory - Production builds output to
distdirectory - Uses
@vitejs/plugin-reactfor React support and optimization
| Command | Description |
|---|---|
npm install |
Install project dependencies |
npm run dev |
Start development server with hot reload at http://localhost:2800 |
npm run build |
Build the app for production to the dist folder |
npm run preview |
Preview the production build locally at http://localhost:2800 |
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License.