- PHP 8.1
- MySQL database server
- Composer
Donwload XAMPP for windows Download Composer
git clone https://github.com/Smagrinnov/laravel-backendcd laravel-backendcomposer install Create a database
cp .env.example .envSet DB_DATABASE DB_USERNAME DB_PASSWORD
php artisan key:generatephp artisan optimize:clearphp artisan migrate:fresh --seedThe file topics_directory.json contains all the default topics. Make sure to import them on a fresh backend instance.
php artisan topics:import topics_directory.jsonThe command php artisan topics:import imports topics to the backend database, and applies updates if needed (It doesn't delete).
The command php artisan topics:export dumps a timestamped file in storage\app\public.
Run:
php artisan scribe:generateOpen api-docs\index.html in a browser.