Coder Social home page Coder Social logo

nadyshalaby / fleet Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.04 MB

Fleet Management is a web application (bus-booking system) to enable users to search through trips and book seats

Home Page: https://documenter.getpostman.com/view/12757027/TzJsexHM

Shell 0.43% Dockerfile 0.62% PHP 74.85% Blade 24.10%
bus-booking fleet-management laravel-application alpinejs docker-laravel nginx-docker jwt-authentication api-rest bootstrap4

fleet's Introduction

About Fleet Management

Fleet Management is a web application (bus-booking system) to enable users to search through trips and book seats, This project provides some features such as:

Fleet Management provides registration form for users to create their accounts and track their bookings.

App (Credentials)

Technologies Used

  • Laravel 8
  • AlpineJs
  • Boostrap 4
  • Yajra Laravel DataTables
  • Select2 Live Search
  • JWT Auth

Algorithm Used.

I uses this pseudo-code to filter through the stops that passenger will pass through his trip.

    $ride = ['start' => 2, 'end' => 4];

    $trips_i_will_see = [];
    $trips_i_wont_see = [];

    $stations =  [1, 2, 3, 4];

    $stations_count = count($stations);

    for ($i = 0; $i < $stations_count; $i++) {
        for ($x = $i; $x < $stations_count; $x++) {
            if ($i == $x) {
                continue;
            }

            if (
                ($stations[$i] <= $ride['start'] && $stations[$x] <= $ride['start']) ||
                ($stations[$i] >= $ride['end'] && $stations[$x] >= $ride['end'])
            ) {
                $trips_i_wont_see[] = ['start' => $stations[$i], 'end' => $stations[$x]];
                continue;
            }

            $trips_i_will_see[] = ['start' => $stations[$i], 'end' => $stations[$x]];
        }
    }

    dd($trips_i_will_see, $trips_i_wont_see);

How to use.

  • Clone this project git clone corecave/fleet fleet
  • Build App: sudo docker-compose up -d
  • Go to: http://127.0.0.1:8000
  • Login using test accounts listed above.

License

The Fleet Management is open-sourced software licensed under the MIT license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.