# vite-vue-template **Repository Path**: integration-project/vite-vue-template ## Basic Information - **Project Name**: vite-vue-template - **Description**: 通过vite构建的vue 脚手架项目,开箱即用,无需多余的基础配置 - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-12 - **Last Updated**: 2026-03-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ```markdown # Vue 3 + TypeScript + Vite Admin Template This project is a high-performance, scalable admin dashboard template built with **Vue 3**, **TypeScript**, and **Vite**. It provides a solid foundation for building enterprise-level applications, featuring a modular architecture, dynamic routing, and a comprehensive state management system. ## ✨ Features - **Modern Tech Stack**: Built on Vue 3 (Composition API), TypeScript, and Vite for lightning-fast performance. - **Dynamic Routing**: Powerful router system with role-based permission management and dynamic route generation. - **State Management**: Integrated **Pinia** stores for managing user sessions, app settings, and UI states. - **Rich Component Library**: Includes pre-built components for forms, animations (including 3D interactions), and file handling. - **Robust API Layer**: A centralized Axios service module for handling HTTP requests efficiently, supporting various backend modules (User, Config, Menu, etc.). - **WebSocket Support**: Built-in Socket.io integration for real-time communication. - **Multiple Layouts**: Supports various login page templates and layout configurations. ## 📂 Project Structure The directory structure is organized to separate concerns and promote scalability: ```text src/ ├── assets/ # Static assets (images, global styles) ├── components/ # Reusable UI components (Animations, Forms, File Preview) ├── compositions/ # Vue 3 Composition API logic (Hooks for User, Messages, Notifications) ├── layouts/ # Layout wrappers (e.g., BlankLayout) ├── libs/ # Third-party library wrappers and utility functions (Socket, UUID, Dates) ├── plugins/ # Plugins configuration (Login templates, UI integrations) ├── router/ # Router configuration and permission logic ├── service/ # API service definitions and request handling ├── store/ # Pinia state management modules (User, App, RouterTab, etc.) ├── views/ # Page views (Home, System, Airdrop, etc.) ├── App.vue # Root component └── main.ts # Application entry point ``` ## 🚀 Getting Started ### Prerequisites - Node.js (v16.0.0 or higher) - npm or yarn ### Installation 1. **Install dependencies**: ```bash npm install ``` 2. **Start the development server**: ```bash npm run dev ``` 3. **Build for production**: ```bash npm run build ``` ## 🛠 Configuration - **Environment Variables**: Create `.env` files to configure API endpoints and global settings. - **Permissions**: Modify `src/permission.ts` and `src/store/modules/async-router.ts` to customize route access and role definitions. - **API Services**: Configure base URLs and interceptors in `src/service/core/request.ts`. ## 🤝 Contributing Contributions are welcome! Please feel free to submit a Pull Request. ## 📄 License This project is licensed under the MIT License. ```