This is a Laravel 8 REST API project for managing users and devices with authentication using Laravel Passport and Dockerized with Laravel Sail.
- Docker & Docker Compose installed on your machine
- Composer installed
git clone https://github.com/devilica/mydevicesapp.git
cd mydevicesappcp .env.example .env- Adjust
.envfile to set your database credentials and mail settings.
./vendor/bin/sail up -ddocker exec -it mydevicesapp-laravel.test-1 /bin/bashphp artisan key:generate
composer install
php artisan passport:install
php artisan migratephp artisan passport:client --passwordUpdate your .env file with the generated Passport client credentials like in this example:
PASSPORT_CLIENT_ID=3
PASSPORT_CLIENT_SECRET=PPfTg8DKIIrMW6ilwgSzlJf9AOnyXpu7hy8B6qOxOpen your browser and visit:
http://localhost
You can find the Postman documentation for all API endpoints here:
MyDevicesApp API Postman Docs
...
This project includes a database dump file for easy setup:
Dump20250801.sql
You can import it into your MySQL database to have the necessary tables and sample data.
...