
π§ Professional electrical services platform connecting customers with certified technicians
Features β’ Demo β’ Installation β’ Tech Stack β’ Structure β’ Contributing β’ Contact
Electric Solutions is a modern web application built with React and TypeScript that connects customers with professional electrical service providers. The platform features a comprehensive service booking system, user authentication with OTP verification, and an admin dashboard for service management.
"Connecting communities with reliable, professional electrical services through innovative technology and exceptional user experience."
Complete user registration and login system with mobile OTP verification |
Comprehensive electrical services catalog with categories and detailed information |
Mobile-first design optimized for all devices using Tailwind CSS |
Full admin panel for managing services, orders, categories, and user profiles |
Complete order tracking and management system for both users and admins |
Razorpay payment gateway integration for secure transactions |
- π Homepage: Hero section with service categories and featured electrical services
- π Authentication: Login/Register with mobile OTP verification system
- π οΈ Services: Comprehensive electrical services catalog with search and filtering
- π Contact: Contact form and customer support information
- βΉοΈ About: Company information and team details
- π¦ User Orders: Order history and status tracking for customers
- π¨βπΌ Admin Panel: Complete administrative control including:
- Dashboard with analytics and statistics
- Service management (CRUD operations)
- Category management
- Order management and tracking
- User profile management
- Settings and configuration
Experience the platform: electric-solutions.vercel.app
{
"frontend": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.2",
"typescript": "latest"
},
"ui_components": {
"@radix-ui/react-*": "latest",
"tailwindcss": "latest",
"lucide-react": "^0.462.0",
"class-variance-authority": "^0.7.1"
},
"state_management": {
"@tanstack/react-query": "^5.56.2",
"react-hook-form": "^7.53.0",
"zod": "^3.23.8"
},
"utilities": {
"axios": "^1.8.4",
"clsx": "^2.1.1",
"date-fns": "^3.6.0",
"tailwind-merge": "^2.5.2"
},
"payment": {
"razorpay": "integrated"
}
}
- Node.js (v18 or higher)
- npm or yarn package manager
- Git for version control
# Clone the repository
git clone https://github.com/deepak748030/Electric-Solutions.git
# Navigate to project directory
cd Electric-Solutions
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env
# Edit .env with your API configuration
# Start development server
npm run dev
# Open browser at http://localhost:8080
Create a .env
file in the root directory:
# API Configuration
VITE_API_URL=https://api.electricsolutions.in/api
# For local development (uncomment if using local backend)
# VITE_API_URL=http://localhost:3000/api
# Development
npm run dev # Start development server on port 8080
# Production
npm run build # Create production build
npm run preview # Preview production build
# Code Quality
npm run lint # Run ESLint for code quality
Electric-Solutions/
βββ π public/
β βββ logo.png # Application logo
β βββ favicon.ico # Favicon
β βββ lovable-uploads/ # Uploaded assets
βββ π src/
β βββ π components/
β β βββ π ui/ # Reusable UI components (Shadcn/UI)
β β βββ π layout/ # Layout components (Navbar, Footer)
β β βββ π home/ # Homepage specific components
β β βββ π common/ # Shared components (Cards, Buttons)
β β βββ π payment/ # Payment integration components
β βββ π pages/
β β βββ π auth/ # Authentication pages
β β β βββ Login.tsx # User login with OTP
β β β βββ Register.tsx # User registration with verification
β β β βββ ForgotPassword.tsx # Password recovery
β β βββ π admin/ # Admin dashboard pages
β β β βββ Dashboard.tsx # Admin analytics dashboard
β β β βββ Services.tsx # Service management
β β β βββ Orders.tsx # Order management
β β β βββ Categories.tsx # Category management
β β β βββ Profile.tsx # Admin profile
β β β βββ Settings.tsx # System settings
β β βββ Index.tsx # Homepage
β β βββ Services.tsx # Services catalog
β β βββ About.tsx # About page
β β βββ Contact.tsx # Contact page
β β βββ UserOrders.tsx # User order history
β β βββ NotFound.tsx # 404 error page
β βββ π hooks/ # Custom React hooks
β βββ π lib/ # Utility functions and configurations
β βββ π styles/ # Global styles and CSS
βββ π package.json # Dependencies and scripts
βββ π vite.config.ts # Vite configuration
βββ π tailwind.config.ts # Tailwind CSS configuration
βββ π tsconfig.json # TypeScript configuration
βββ π README.md # Project documentation
The application integrates with a backend API for all data operations:
POST /api/users/register
- User registrationPOST /api/users/login
- User authenticationPOST /api/users/send-otp
- Send OTP for verificationPOST /api/users/verify-otp
- Verify OTP code
GET /api/services
- Fetch all servicesGET /api/services/:id
- Get specific service detailsPOST /api/services
- Create new service (Admin)PUT /api/services/:id
- Update service (Admin)DELETE /api/services/:id
- Delete service (Admin)
GET /api/orders
- Fetch user ordersPOST /api/orders
- Create new orderPUT /api/orders/:id
- Update order status
We welcome contributions to improve Electric Solutions! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/new-feature
) - Commit your changes (
git commit -m 'Add new feature'
) - Push to the branch (
git push origin feature/new-feature
) - Open a Pull Request
- Follow existing code style and TypeScript conventions
- Write clear, descriptive commit messages
- Test your changes thoroughly
- Update documentation if needed
- Ensure all builds pass before submitting
Found a bug? Please open an issue with:
- Clear description of the problem
- Steps to reproduce the issue
- Expected vs actual behavior
- Screenshots or error messages (if applicable)
This project is licensed under the MIT License.
MIT License
Copyright (c) 2024 Deepak Kushwah
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.

Full Stack Developer & Software Engineer
"Passionate about creating innovative web solutions that connect businesses with their customers."
- Frontend: React, TypeScript, Next.js, Vue.js, Tailwind CSS
- Backend: Node.js, Express.js, Python, RESTful APIs
- Database: PostgreSQL, MongoDB, MySQL
- Cloud & DevOps: AWS, Vercel, Docker, CI/CD
- Tools: Git, Webpack, Vite, ESLint, Prettier
Special thanks to the amazing open-source community and tools that made this project possible:
- React Team for the powerful frontend framework
- Tailwind CSS for the utility-first CSS framework
- Shadcn/UI for beautiful, accessible React components
- Radix UI for low-level UI primitives
- TanStack Query for powerful data fetching and state management
- Vite for lightning-fast development experience
- Vercel for seamless deployment and hosting
Powering connections between customers and electrical service professionals
π Visit Live Demo | π View Source Code
Made with β€οΈ by Deepak Kushwah
β Star this repository if you found it helpful!