Skip to content

dhaatrik/fueldrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

138 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

FuelDrop Logo

FuelDrop

CI Version License

FuelDrop is a cutting-edge, React-powered fuel delivery platform that redefines how users refuel their vehicles. By bridging the gap between fuel stations and consumers, it offers an on-demand service that is both convenient and transparent.

๐Ÿš€ The Problem & Solution

The Problem: Traditional refueling often involves long wait times, inconvenient detours, and lack of real-time tracking for businesses managing multiple vehicles.

The Solution: FuelDrop brings the fuel station to the user. Whether it's a single car at home or a fleet at a warehouse, FuelDrop provides a seamless ordering experience with real-time tracking, secure authentication, and comprehensive order history.


๐Ÿ“‹ Table of Contents


โœจ Features

Core Experience

  • ๐Ÿ” Secure Authentication: Mobile-first OTP verification (simulated) for user security.
  • ๐Ÿš— Vehicle Garage: Add and manage profiles for multiple vehicles with fuel type, tank capacity, and daily usage tracking.
  • โ›ฝ Smart Ordering: Precise ordering by volume (liters) or value (rupees) with dynamic pricing and auto-selection for single-vehicle users.
  • ๐Ÿ“ Real-time Tracking: Live delivery status updates, captain assignment, and ETA tracking.
  • ๐Ÿ“Š Order Insights: Comprehensive history of past and ongoing deliveries with filters & search.
  • โค๏ธ Favorite Orders: Save and quickly reorder your most common fuel deliveries.
  • ๐Ÿ‘จโ€โœˆ๏ธ Captain Dashboard: Dedicated interface for delivery partners to manage and fulfill orders.
  • ๐ŸŒ™ Dark Mode: Full light/dark theme support with a neo-brutalist design system.
  • ๐Ÿ“ฑ Mobile-First Design: Fully responsive UI built for the modern mobile user.

Advanced Features

  • ๐Ÿšจ Emergency Refill: Priority dispatch toggle with +โ‚น150 surge fee, skipping the queue and alerting captains with a visual badge.
  • ๐Ÿ“ Delivery Instructions: Free-text field (200 chars) for access notes like "Park near Pillar 4B" โ€” visible to captains throughout the delivery.
  • ๐ŸŽ Promo Code Discovery: A "View Available Offers" bottom sheet in checkout so users never miss a discount (e.g., FIRST50).
  • โฑ๏ธ Modification Grace Period: 60-second countdown after placing an order to edit or undo before a captain picks it up.
  • ๐Ÿ”ฎ Predictive Refill Reminders: Smart reminders on the home screen based on tank capacity and daily driving patterns.
  • ๐Ÿš Fleet Mode: Dedicated bulk ordering page (/fleet) to refuel multiple vehicles in a single checkout.
  • ๐Ÿ—บ๏ธ Navigate in Maps: Captain can open Google Maps with one tap for turn-by-turn directions to the customer.
  • ๐ŸŒฟ Impact Gamification: Post-delivery screen showing time saved, COโ‚‚ avoided, and total deliveries completed.
  • โญ Captain Rating: Rate your delivery captain and leave tips after each order.

๐Ÿ›  Tech Stack

Technology Purpose Why?
React 19 UI Framework Leverages the latest concurrent rendering features for a smooth UX.
TypeScript Language Ensures type safety and improves developer productivity.
Vite Build Tool Provides near-instant Hot Module Replacement (HMR) and optimized builds.
Tailwind CSS 4 Styling Utility-first approach for rapid, consistent, and responsive UI development.
Motion Animation Adds fluid, premium micro-animations to improve user engagement.
Lucide React Icons A beautiful and consistent icon set for modern interfaces.

๐Ÿ Getting Started

Prerequisites

  • Node.js: Version 22.0 or higher (LTS recommended)
  • Package Manager: npm (v10+) or yarn
  • Browser: Modern evergreen browser (Chrome, Edge, Firefox, Safari)

Installation

  1. Clone the repository

    git clone https://github.com/dhaatrik/fueldrop.git
    cd fueldrop
  2. Install dependencies

    npm install
  3. Launch Development Server

    npm run dev

    Open http://localhost:3000 to view the application.


๐Ÿ“– Usage Guide

User Journey: Refueling Made Simple

Follow these steps to get fuel delivered to your doorstep:

  1. Secure Login: Enter your mobile number and authenticate using the test OTP 1234.
  2. Add Your Fleet: Navigate to the Garage to add your vehicles. Optionally set tank capacity and avg daily km to get smart refill reminders on the home screen.
  3. Place an Order:
    • If you have only one vehicle, it's auto-selected for you.
    • Choose your fuel type (Petrol/Diesel).
    • Specify quantity by Volume (Liters) or Value (Rupees).
    • Toggle ๐Ÿšจ Emergency Refill for priority dispatch (+โ‚น150 surge).
    • Add optional delivery instructions for the captain.
  4. Fleet Mode: Need to refuel multiple vehicles? Use the Fleet button on the home screen to place a bulk order.
  5. Instant Checkout: Review transparent pricing. Tap "View Available Offers" to discover and apply promo codes like FIRST50.
  6. Live Tracking: Once a Captain accepts, track their progress in real-time. During the first 60 seconds, you can tap "Edit Order" to modify your order.
  7. Completion & Feedback: After delivery, rate your experience and view your impact โ€” time saved, COโ‚‚ avoided, and total deliveries.

๐Ÿ‘จโ€โœˆ๏ธ Captain Guide

Fulfilling Orders

The Captain App is a dedicated interface for our delivery partners to manage their workflow.

Accessing the Captain App: Navigate to http://localhost:3000/captain to access the Captain Dashboard. This route is publicly accessible for testing and demonstration purposes.

Captain Workflow:

  1. Dashboard Overview: View available orders with fuel type, quantity, distance, and any โšก Emergency Priority badges.
  2. Accepting Orders: Tap "Accept Order" to claim a delivery. Look for delivery instructions from the customer (e.g., gate codes, parking notes).
  3. Navigate in Maps: Tap the "Navigate in Maps" button to open Google Maps with turn-by-turn directions to the customer.
  4. Status Management: Update the order status as you progress:
    • Pick Up: Mark when you've reached the station.
    • In Transit: Mark when you are on your way to the user.
    • Arrived: Notify the user when you've reached the delivery location.
  5. Order Completion: Finalize the delivery once the fuel is dispensed.
  6. Earnings Tracking: (Coming Soon) Track your daily earnings and completed trips.

๐Ÿค Contributing

We love contributions! Whether it's a bug fix, a new feature, or improved documentation, satisfy your curiosity by helping us build FuelDrop.

  1. Fork the project.
  2. Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

Please adhere to our Code of Conduct.


๐Ÿงช Testing

Maintain high code quality by running our validation suite:

# Run TypeScript type-checking
npm run lint

# Verify the production build
npm run build

# Run unit tests
npm test

๐Ÿ“„ License

This project is licensed under the MIT License. See the LICENSE file for the full text.


Built with โค๏ธ by Dhaatrik Chowdhury

About

This is a cutting-edge, React-powered fuel delivery platform that redefines how users refuel their vehicles. By bridging the gap between fuel stations and consumers, it offers an on-demand service that is both convenient and transparent.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors