Skip to content

🧭Hyper Local Service Provider Network with Dynamic Pricing web application using React (frontend) and PHP (backend) 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.

Notifications You must be signed in to change notification settings

esteham/local-service-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧭 Hyper Local Service Provider Network with Dynamic Pricing

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.


Screenshot Screenshot Screenshot Screenshot Screenshot Screenshot Screenshot

Web link

Visit Kamla

πŸš€ Features

πŸ‘€ Users

  • 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

πŸ› οΈ Service Providers

  • Register/Login
  • Set availability
  • Accept/reject service requests
  • View earnings

πŸ›‘οΈ Admin

  • Manage users & providers
  |__ user     : admin
  |__ password : 09876543
  • Set zone-based pricing rules
  • Control demand-supply multipliers
  • Assign zones & areas

πŸ“¦ Tech Stack

Layer Technology
Frontend React (Vite), React Router, Axios
Backend PHP (OOP), PDO, REST API
Database MySQL
Styling Bootstrap
Auth Session/JWT (configurable)

πŸ“ Project Structure

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

βš™οΈ Setup Instructions

🐘 Backend (PHP)

  1. Install PHP & MySQL
  2. Create a database and import database/schema.sql
  3. Set up Apache or PHP built-in server
  4. Configure /backend/config/database.php with your DB credentials

βš›οΈ Frontend (React)

  1. Navigate to frontend/
  2. 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

About

🧭Hyper Local Service Provider Network with Dynamic Pricing web application using React (frontend) and PHP (backend) 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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published