Skip to content
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.

Latest commit

History

History
34 lines (23 loc) 路 844 Bytes

README.md

File metadata and controls

34 lines (23 loc) 路 844 Bytes

Fight Food Waste - Collects and deliveries

Installation

composer install
cp .env.example .env
php artisan key:generate
php artisan migrate:fresh
php artisan db:seed

Add a cron entry for the scheduler, only used for Telescope as of now.

IDE Helper

Provides accurate autocompletion.

See barryvdh/laravel-ide-helper.

php artisan clear-compiled
php artisan ide-helper:generate
php artisan ide-helper:models
php artisan ide-helper:meta

API Usage

See available routes in routes/api.php.

You can login by sending a POST request to /api/login with your email + password. You will get a token back.

To authenticate yourself for other requests, add a Authorization header containing Bearer <token>