Skip to content

A project to create the delay report for orders in a delivery service

Notifications You must be signed in to change notification settings

ali-sharafi/delay-report

Repository files navigation

Delay Reporter

Introduction

A package for reporting a delivery delay. when an order is saved by a specific delivery time, if after the delivery time, the order didn't deliver then the client could submit a delay report. his delay is put into the phpredis queue to process by the agent's part with the FIFO approach.

this package uses Laravel sail for development and the instruction for launching the project described below.

Documentation

Supported Versions

PHP Version Laravel Version
8.1 9.*

Installation

Install composer dependencies:

docker run --rm \
    -u "$(id -u):$(id -g)" \
    -v $(pwd):/var/www/html \
    -w /var/www/html \
    laravelsail/php81-composer:latest \
    composer install --ignore-platform-reqs

Configure App:

cp .env.example .env

Add this to .env file:

FORWARD_DB_PORT=3307
APP_PORT=8000

And replace this:

REDIS_HOST=127.0.0.1
DB_HOST=127.0.0.1
DB_USERNAME=root
DB_PASSWORD=

To:

REDIS_HOST=redis
DB_HOST=mysql
DB_USERNAME=sail
DB_PASSWORD=password

Run Application:

./vendor/bin/sail up -d

Generate application key:

./vendor/bin/sail artisan key:generate

Run migration files:

./vendor/bin/sail artisan migrate --seed

Tests

./vendor/bin/sail test

About

A project to create the delay report for orders in a delivery service

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages