A modern and responsive admin dashboard built with React and TypeScript, featuring a beautiful UI powered by Tailwind CSS and Shadcn/UI components.
- 🔐 Authentication System: Secure login and registration with JWT
- 📊 Dashboard Overview: Key metrics and statistics at a glance
- 📦 Product Management:
- Create, edit, and delete products
- Categorized by type (Electronics, Clothing, Furniture, Food)
- Real-time form validation with Zod
- Structured data management with TypeScript
- 🎨 Modern UI/UX:
- Built with Shadcn/UI components
- Consistent design language
- Smooth transitions and animations
- 🚀 Performance:
- Built with Bun for lightning-fast development
- React Query for efficient data fetching
- Optimized API calls with caching
- 📱 Responsive Design: Optimized for all screen sizes
- 🌙 Dark Mode: Built-in dark mode support
- Framework: React 18 with TypeScript
- Build Tool: Vite
- Runtime: Bun
- Styling: Tailwind CSS
- UI Components: Shadcn/UI
- State Management: React Query + Zustand
- Form Handling: React Hook Form + Zod
- HTTP Client: Ky
- Notifications: Sonner
- Icons: Lucide React
Make sure you have Bun installed on your machine.
-
Clone the repository:
git clone https://github.com/Radinax/admin-dashboard.git cd admin-dashboard
-
Install dependencies:
bun install
-
Create a
.env
file in the root directory and add your environment variables:VITE_API_URL=your_api_url_here
-
Start the development server:
bun run dev
The app will be available at http://localhost:5173
bun run build
bun test
src/
├── components/ # Reusable UI components
│ └── ui/ # Shadcn UI components
├── features/ # Feature-based modules
│ ├── auth/ # Authentication feature
│ └── products/ # Product management feature
├── hooks/ # Custom React hooks
├── lib/ # Utility libraries
│ ├── client.ts # API client configuration
│ └── utils.ts # Helper functions
├── providers/ # React context providers
└── types/ # TypeScript type definitions
The product management system includes:
- Types: Electronics, Clothing, Furniture, Food
- Categories:
- Electronics: Smartphones, Laptops, Accessories
- Clothing: Shirts, Pants, Shoes
- Furniture: Tables, Chairs, Sofas
- Food: Snacks, Beverages, Meals
- Validation: Comprehensive form validation using Zod
- Real-time Updates: Immediate UI updates using React Query
- Type Safety: Full TypeScript support with centralized type definitions
- 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
Built with ❤️ by Adrian Beria