A full-stack web application where users can request nearby service providers (e.g., electricians, plumbers) and get dynamically calculated pricing based on real-time factors like time, zone, demand, and provider availability.
- Register/Login
|__Click reg and fill all input with valid email. When you submit your form then automatic sent a OTP in your mail and submmit your OTP then create your accout successfully- Request local services
- View dynamic pricing
- Track service status & history
- Register/Login
- Set availability
- Accept/reject service requests
- View earnings
- Manage users & providers
|__ user : admin
|__ password : 09876543- Set zone-based pricing rules
- Control demand-supply multipliers
- Assign zones & areas
| Layer | Technology |
|---|---|
| Frontend | React (Vite), React Router, Axios |
| Backend | PHP (OOP), PDO, REST API |
| Database | MySQL |
| Styling | Bootstrap |
| Auth | Session/JWT (configurable) |
hyperlocal-service-network/
βββ backend/
β βββ api/ # All RESTful PHP endpoints
β βββ classes/ # PHP OOP class files
β βββ config/ # DB config and initialization
β βββ assets/ # Uploads and static files
β
βββ frontend/
β βββ public/ # HTML template
β βββ src/
β β βββ components/ # React components (User, Admin, Provider)
β β βββ pages/ # Page-level components
β β βββ context/ # Context API (e.g., AuthContext)
β β βββ services/ # Axios API wrappers
β β βββ App.jsx # Main App
β βββ .env # Environment variables
β
βββ database/
β βββ schema.sql # All MySQL tables
- Install PHP & MySQL
- Create a database and import
database/schema.sql - Set up Apache or PHP built-in server
- Configure
/backend/config/database.phpwith your DB credentials
- Navigate to
frontend/ - Install dependencies:
npm install Start development server: npm run dev
π Database Overview
users β User info (role: user/admin/provider)
providers β Skills, availability, and zone
services β User-to-provider job mapping
pricing_rules β Zone/time/multiplier rules
zones and areas β Geo data
reviews, notifications
π‘ Dynamic Pricing Algorithm
Dynamic pricing is calculated based on:
Current time of day (peak/off-peak)
Zone-specific multipliers
Provider availability (low/high)
User demand volume
Example formula:
final_price = base_price * zone_multiplier * time_multiplier * demand_factor
π Security
Passwords hashed using password_hash()
Backend uses PDO prepared statements
Session-based login with role checking
Frontend input validation with alerts
π License
This project is licensed under the MIT License. π¨βπ» Author
Developed by Esteham H. Zihad Ansari
For any queries, email: [email protected]
#DEMO2 add






