Skip to content

🚚 Fleetbase: Open Source Modular Logistics Platform. Built on adaptable extensions to manage and orchestrate logistics operations.

License

Notifications You must be signed in to change notification settings

manishsainju/fleetbase

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Fleetbase logo

Open Source Modular Logistics Platform
Fleetbase Documentation β†’

Report an Issue Β· API Reference Β· Guides Β· Request a Feature Β· Blog Β· API Status Β· Discord


⭐️ Overview

Fleetbase is an open-source modular platform designed for the efficient management and orchestration of logistics operations. It serves as both a powerful operational tool for businesses and a flexible foundation for developers. The platform's core is built around a collection of "extensions," which create a customizable framework capable of meeting a wide range of supply chain and logistics requirements.

Each extension in Fleetbase is purposefully engineered to fulfill specific roles within the logistics ecosystem. Users have the freedom to create their own extensions, expanding the platform's ecosystem and ensuring its adaptability to various use cases. This extensible nature keeps Fleetbase at the forefront of addressing diverse logistical and supply chain needs now and in the future.

Fleetbase Console

πŸš€ We've just announced our Alpha release on Product Hunt! πŸš€

Check Fleetbase out on ProductHunt, and support with a Upvote!

Fleetbase (Alpha) - The open source OnFleet alternative | Product Hunt

πŸ“– Table of contents

πŸ“¦ What's Included

Fleetbase is more than just a platform; it's a versatile ecosystem carefully architected to empower developers and businesses alike. Fleetbase comes pre-installed with a few extensions that provide base functionality to get users and businesses started:

  • Console: Fleetbase's frontend console is built with Ember.js and Ember Engines, offering a modular and extensible design. This design allows the system to easily adapt and scale according to your evolving needs while simplifying the integration of new extensions. By leveraging the console's design, extensions can be seamlessly installed using their respective package managers, reducing complexity and integration time.
  • Fleetbase API: Fleetbase's backend API and framework are built with Laravel, providing a robust and flexible infrastructure for extension development and integration. The system efficiently manages complex data structures and transactions while seamlessly incorporating new extensions through package managers. We offer additional packages for developers to create custom extensions, enhancing the flexibility and extensibility of the Fleetbase ecosystem.
  • Extensions: Fleetbase is designed to provide immediate utility out-of-the-box. It comes pre-installed with several key extensions
    • FleetOps: FleetOps, our comprehensive fleet management extension, caters to all aspects of last-mile operations. Some of it's features include:
      • Real-time tracking for vehicles and assets, ensuring optimal operational efficiency.
      • Order creation and management, facilitating seamless transaction processing. Service rates management, helping maintain financial transparency and profitability.
      • Fleet management, providing a holistic view and control of your fleet.
      • Third-party vendor integrations, allowing you to consolidate your resources.
      • API & Webhooks that not only offer increased interconnectivity but also serve to facilitate integrations with other services and applications, making FleetOps a truly versatile solution.
    • Storefront: Storefront is an extension that delivers headless commerce functionality, ideal for businesses aspiring to develop on-demand stores or marketplaces. It aims to facilitate seamless transactions while focusing on providing an excellent user experience.
    • Dev Console: The Dev Console extension is a developer's toolbox, providing resources such as:
      • API keys management, ensuring secure interactions with the application programming interface.
      • Webhooks management, enabling real-time data exchanges.
      • Sockets management, facilitating bi-directional client-server communication.
      • Logs management, crucial for system monitoring and troubleshooting.
      • API events management, keeping a pulse on system communications.

🏁 Getting Started

Before you can get started with Fleetbase, you'll need to make sure you have the following prerequisites:

  1. A computer running either Linux, Mac OS, or Windows
  2. Docker installed
  3. Git installed
  4. If you want to try now, the cloud hosted version of Fleetbase available here.

🚦 Use Cases

Fleetbase's comprehensive suite of features and the modular design make it highly versatile, catering to a broad array of applications across different industries. Here are a few use cases:

  • Logistics and Supply Chain Management: Fleetbase could be employed by a logistics company to streamline its operations. Real-time tracking provided by FleetOps would help maintain visibility of fleet vehicles and assets at all times. This would ensure timely delivery, reduce operational inefficiencies, and enable proactive management of any logistical issues. Additionally, the order creation and management feature could be used to manage deliveries, pickups, and routing.
  • On-demand Delivery Services: On-demand services like food delivery or courier companies could utilize Fleetbase to manage their fleet of delivery agents. The real-time tracking functionality would help to optimize routes and ensure prompt deliveries, while the order creation and management system would efficiently handle incoming orders.
  • E-Commerce Platforms: E-commerce businesses could leverage Fleetbase to manage their backend logistics. The Storefront extension would enable seamless online transactions, while FleetOps could manage all aspects of the delivery process, ensuring a smooth shopping experience for the customers.
  • Ride-Hailing Services: Fleetbase could be a perfect fit for ride-hailing or car rental services. FleetOps would manage real-time tracking of vehicles, maintaining optimal vehicle utilization, while the API and Webhooks would facilitate integration with mobile apps to provide real-time updates to customers.
  • Third-party Logistics (3PL) Provider: A 3PL provider could use Fleetbase for comprehensive management of its services. From real-time tracking of cargo to managing service rates and integration with other vendors in the supply chain, Fleetbase could provide an all-in-one solution.
  • Developer Resource Management: Developers building complex, resource-intensive applications could benefit from Fleetbase's Dev Console. API keys and webhook management could streamline the secure interaction between different software components. At the same time, sockets, logs, and API events management tools would assist in maintaining, troubleshooting, and improving the system.
  • Public Transportation Systems: City transportation services could use Fleetbase to optimize their bus or subway operations. With FleetOps, they could have real-time tracking of their vehicles, ensuring that schedules are met promptly and delays are handled effectively. Moreover, service rates management could assist in setting and adjusting fares, while the API and Webhooks functionality could integrate with public apps to provide real-time updates to commuters about arrivals, delays, and route changes.
  • Fleet Leasing Companies: Fleet leasing companies could employ Fleetbase to manage their vehicle assets and track their status in real time. From managing service rates to ensuring the best utilization of assets, FleetOps could provide a holistic solution. Moreover, the Storefront extension could be used to list available vehicles and manage online reservations seamlessly.
  • Emergency Services: Emergency services like ambulance or firefighting departments could use Fleetbase to manage their operations. FleetOps would provide real-time tracking, ensuring that emergency vehicles are dispatched quickly and the fastest routes are chosen. In addition, the API and Webhooks functionality could allow integration with emergency call centers, ensuring a seamless flow of information and a swift response to emergencies.

Remember, these are just a few examples. Given the modular and extensible nature of Fleetbase, it can be customized and scaled to fit many other use cases across different industries.

πŸ’Ύ Installation

Getting Fleetbase up and running on your system using Docker and Docker-compose is straightforward. Please follow the steps below:

Prerequisites

  • Ensure that you have Docker and Docker-compose installed on your system. If not, you can download and install them from their respective official websites:
  • Clone the Fleetbase repository to your local machine:
    git clone [email protected]:fleetbase/fleetbase.git
  • Navigate to the cloned repository:
    cd fleetbase
  • Initialize and pull submodules:
    git submodule update --init --recursive

Build and Run Fleetbase

  1. Start the Docker daemon: Ensure the Docker daemon is running on your machine. You can either start Docker Desktop or either executed by running:
    service docker start
  2. Build the Docker containers: Use Docker Compose to build and run the necessary containers. In the root directory of the Fleetbase repository, run:
    docker-compose up -d

Additional Steps

  1. Fleetbase will try to find the current hostname or public IP address to whitelist in for CORS, but if this fails you will need to manually add your hostname or instance URL to api/config/cors.php in the allowed_origins array. This will whitelist the console for CORS access to your instance backend.
  2. πŸ›£ Routing! By default Fleetbase currently will use it's own routing engine which is hosted at https://routing.fleetbase.io, this routing engine only works for a few enabled countries which include USA, Canada, Belgium, Spain, Serbia, Taiwan, Malaysia, Singapore, Brunei, Mongolia, India, Ghana. We can enable more regions and countries upon request. There is a Roadmap item to allow users to easily change to any routing engine provider such as Mapbox, Google Maps, and other 3rd Party Routing services. Optionally, you can switch out Fleetase Routing engine with any OSRM compatible service such as OpenStreetMap by changing the console environment variable OSRM_HOST which can be found in console/environments/*.env.
  3. If you find any bugs or unexpected issues please post an issue to the repo or join our Discord.

Troubleshoot

Have an issue with the installation, try a few of these workarounds.

  • Installer not working?
    If you encounter issues with the web based installer use this workaround to get going.
    1. Login to the application container.
      docker exec -ti fleetbase-application-1 bash
    2. Manually run the database setup and migrations.
      php artisan mysql:createdb
      php artisan migrate:refresh --seed
    3. After completing these steps you should be able to proceed with account creation.

Access Fleetbase

Now that Fleetbase is up and running via Docker you can find the console and the API accessible:

  • Fleetbase Console: http://localhost:4200
  • Fleetbase API: http://localhost:8000

🧩 Extensions

Fleetbase extensions provide a powerful way to enhance and customize the functionality of Fleetbase to suit your specific needs. They are standalone modules that seamlessly integrate with Fleetbase's frontend and backend, allowing you to extend its capabilities.

What are Fleetbase Extensions?

Fleetbase Extensions are built using both a backend PHP package and a frontend Ember Engine Addon. They are designed to blend seamlessly into the Fleetbase ecosystem, utilizing shared services, utilities, stylesheets, components, and template helpers.

How do Extensions Work?

  • Backend: The backend of an extension is developed as a PHP package. This package should utilize the composer package fleetbase/core-api, which provides core API functionalities, making it easier to integrate your extension with Fleetbase's backend.
  • Engine: The frontend of an extension is built as an Ember Engine Addon. The Addon must require the packages @fleetbase/ember-core and @fleetbase/ember-ui. The @fleetbase/ember-core package provides core services and utilities that help to align your extension with Fleetbase's frontend. The @fleetbase/ember-ui package, on the other hand, supplies all the stylesheets, components, and template helpers needed to design a Fleetbase extension that seamlessly matches the look and feel of the Fleetbase UI.

Building a Fleetbase Extension

To create a Fleetbase extension, follow these steps:

  • Backend PHP Package Creation: Begin by creating a backend PHP package. Make sure to use the composer package fleetbase/core-api to ensure smooth integration with Fleetbase's backend.
  • Frontend Ember Engine Addon: Next, you need to create the frontend of the extension using Ember Engine. Be sure to include the @fleetbase/ember-core and @fleetbase/ember-ui packages. These packages provide necessary services, utilities, and design components for aligning your extension with Fleetbase's UI.
  • Integrate Your Extension: Once you have the backend and frontend ready, you can integrate your extension into Fleetbase by installing it via the respective package managers. In the future you will be able to publish your extension to the Fleetbase extensions repository making it available to all instances of Fleetbase with the ability to even sell your extension.

With Fleetbase's modular architecture, you can develop your extensions to solve unique problems, enhance existing functionality, or add entirely new capabilities to your Fleetbase instance. This extensibility allows Fleetbase to adapt and evolve with your growing business needs.

πŸ“± Apps

Fleetbase offers a few open sourced apps which are built on Fleetbase which can be cloned and customized. Every app is built so that the Fleetbase instance can be switched out whether on-premise install or cloud hosted.

  • Storefront App: Fleetbase based ecommerce/on-demand app for launching your very own shop or marketplace to Apple or Android playstore.
  • Navigator App: Fleetbase based driver app which can be used for drivers to manage and update order, additionally provides real time driver location which can be viewed in the Fleetbase Console.

πŸ›£ Roadmap

  1. Open Source Extension Repository
  2. 🌎 Internationalize
  3. Multiple and Custom Routing Engine's in FleetOps
  4. Identity & Access Management (IAM) Extension
  5. Inventory and Warehouse Management Extension
  6. Freight Forwarder Quote Parser/ System Extension

πŸͺ² Bugs and πŸ’‘ Feature Requests

Have a bug or a feature request? Please check the issue tracker and search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.

πŸ“š Documentation

View and contribute to our Fleetbase Guide's and API Reference

πŸ‘¨β€πŸ’» Contributing

Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.

πŸ‘₯ Community

Get updates on Fleetbase's development and chat with the project maintainers and community members by joining our Discord.

See the Releases section of our GitHub project for changelogs for each release version of Fleetbase.

Release announcement posts on the official Fleetbase blog contain summaries of the most noteworthy changes made in each release.

Creators

Ronald A. Richardson- Co-founder & CTO

Ron Image

Github | LinkedIn

Shiv Thakker - Co-founder & CEO

Shiv Image

Github | LinkedIn

License & Copyright

Code and documentation copyright 2018–2023 the Fleetbase Authors. Code released under the MIT License.

About

🚚 Fleetbase: Open Source Modular Logistics Platform. Built on adaptable extensions to manage and orchestrate logistics operations.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 47.7%
  • PHP 18.5%
  • Handlebars 15.7%
  • Mermaid 10.8%
  • Blade 4.3%
  • Dockerfile 1.3%
  • Other 1.7%