Skip to content

sameer-ansari-dev/fuelmate

Repository files navigation

🏍️ FuelMate - Smart Bike Fuel Calculator

FuelMate is a production-ready web application designed to help riders calculate exact fuel requirements and costs. It features real-time data, road condition adjustments, and a vast database of motorcycles.

🚀 Live Demo

Website: https://fuelmate.onrender.com

✨ Key Features

  • Smart Calculation: Calculate fuel based on distance, mileage, and Road Conditions (City/Highway/Mixed).
  • Massive Bike Database: Pre-loaded with 100+ popular bikes including Royal Enfield, Honda, TVS, Ather (EV), and more.
  • Real-Time Prices: Fetches live fuel prices for accurate cost estimation.
  • Trip History: Save and track your past trips (requires login).
  • Admin Panel: Robust dashboard for managing users, bikes, and suggestions.
  • Responsive UI: Beautiful, mobile-first design using Bootstrap 5.

🛠️ Installation & Setup

Prerequisites

  • Python 3.9+
  • PostgreSQL (or SQLite for local dev)

1. Clone the Repository

git clone https://github.com/sameer-ansari-dev/fuelmate.git
cd fuelmate

2. Install Dependencies

pip install -r requirements.txt

3. Configure Environment

Create a .env file in the root directory:

DATABASE_URL=sqlite:///fuelmate.db  # or your PostgreSQL URL
SECRET_KEY=your_secure_secret_key
API_NINJAS_KEY=your_api_key       # Optional
GOOGLE_MAPS_API_KEY=your_api_key  # Optional

4. Initialize Database

flask shell
>>> from models import db
>>> db.create_all()
>>> exit()

5. Create Admin User

Run the helper script to create the default admin account:

python create_admin.py

Default Credentials:

  • Username: admin
  • Password: password

6. Run the Application

python app.py

Visit http://localhost:5000 in your browser.

👨‍💻 Admin Panel Access

Login at /auth/login with the admin credentials. You can:

  • Add/Edit/Delete Bikes
  • Manage Users (Block/Delete)
  • Review User Suggestions
  • Monitor Fuel Price Logs

🤝 Contributing

  1. Fork the repo
  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

📄 License

Distributed under the MIT License. See LICENSE for more information.


Developed by Ansari Mohammed Sameer

About

FuelMate is a production-ready web application that helps bike riders calculate exact fuel requirements and costs for any trip using real-time data from multiple APIs.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors