Folders and files Name Name Last commit message
Last commit date
parent directory
View all files
there are three route prefix including admin,agents,customers
admin can create and show some entity(agents,trips,vendors), also update trips status
agents can see delay reports analytics also request for assigning delay reports
customers can create delay reports for an order also can see orders and create a order
also when you run php artisan db:seed
, it maks some entity for your test:
order without delay 01HXKK57NZAZ6G37D10QYYE41S
order without trip 01HXKKWRGMTT1YCBD22RN54D8H
order with delivered trip 01HXKKWXSK03E43RHSDTDCW33C
order with assigned trip 01HXKKX9XKFXJ0SM8EVR5Q3PM4
,
agent 01HXKKXN075Z3339HDEN3Z3HP2
,
agent 01HXKKXW56JW37DDENTBFT554G
,
there are some tests for checking different scenarios that it is run by php artisan test
you can see routs list by php artisan rout:list
PHP >= 8.2
POSTGRES >= 14.11
Composer >= 2.7.1
git clone git@github.com :mnbp1371/snappfood-task.git
cd snappfood-task
composer install
cp .env.example .env
vi .env
php artisan migrate:fresh
php artisan db:seed
php artisan key:generate
echo '127.0.0.1 snappfood-task.local' | sudo tee -a /etc/hosts
sudo php artisan serve --host=snappfood-task.local --port=80
Open project on http://snappfood-task.local
Deploy project via docker
git clone git@github.com :mnbp1371/snappfood-task.git
cd snappfood-task
docker compose up
docker exec -it snappfood.app /bin/bash
composer install
cp .env.example .env
php artisan migrate:fresh
php artisan db:seed
php artisan key:generate
Open project on http://127.0.0.1:8000
You can’t perform that action at this time.