A modern, TypeScript-powered admin dashboard for managing various web applications.
This dashboard is part of the @ying-web
ecosystem, built with React 18 and TypeScript. It provides a sleek interface for managing different applications.
- ⚛️ React 18 - Latest version of the popular UI library
- 📘 TypeScript - For type-safe code
- 🎨 Ant Design - Enterprise-grade UI components
- 🌊 TailwindCSS - Utility-first CSS framework
- 🔄 Vite - Next-generation frontend tooling
- 📡 Axios - Promise-based HTTP client
- 🎯 ESLint & Prettier - Code quality tools
- 💅 Less - CSS preprocessor
- Node.js >= 18.16.0
- Pnpm: 8.5.1
- Install dependencies:
pnpm install
- Configure environment:
# Copy environment file
cp .env.example .env.development
# Edit environment variables
VITE_REQUEST_BASE_URL=https://api.example.com
VITE_EVENTS_BASE_URL=https://events.example.com
- Start development server:
# Start with hot reload
pnpm dev
# Run linting
pnpm lint
# Run linting for all files
pnpm lint:all
# Run style linting
pnpm stylelint
# Run style linting with auto-fix
pnpm stylelint:fix
This project is optimized for Vercel deployment.
-
Connect your GitHub repository to Vercel
-
Configure the following settings:
- Framework Preset:
Vite
- Build Command:
pnpm build
- Output Directory:
dist
- Install Command:
pnpm install
- Framework Preset:
-
Add environment variables in Vercel project settings:
VITE_REQUEST_BASE_URL=https://api.production.com
VITE_EVENTS_BASE_URL=https://events.production.com
- Deploy! Vercel will automatically handle the build and deployment process.
Current deployment: https://admin.krissarea.com
- Configure production environment:
# Copy environment file
cp .env.example .env.production
# Edit production environment variables
VITE_REQUEST_BASE_URL=https://api.production.com
VITE_EVENTS_BASE_URL=https://events.production.com
- Build and preview:
# Build for production
pnpm build
# Preview production build
pnpm preview
apps/admin/
├── src/ # Source code
│ ├── components/ # Reusable components
│ ├── hooks/ # Custom React hooks
│ ├── layouts/ # Layout components
│ ├── pages/ # Page components
│ ├── services/ # API services
│ ├── styles/ # Global styles
│ ├── types/ # TypeScript types
│ └── utils/ # Utility functions
├── public/ # Static assets
└── dist/ # Build output
Required variables in .env.development
and .env.production
:
VITE_REQUEST_BASE_URL
- Backend API URLVITE_EVENTS_BASE_URL
- Events system URL
MIT License - see the LICENSE file for details.
Made with ❤️ by the @ying-web