- PHP 8.1
- MySQL database server
- Composer
Donwload XAMPP for windows Download Composer
git clone https://github.com/Smagrinnov/laravel-backend
cd laravel-backend
composer install
Create a database
cp .env.example .env
Set DB_DATABASE
DB_USERNAME
DB_PASSWORD
php artisan key:generate
php artisan optimize:clear
php artisan migrate:fresh --seed
The 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.json
The 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:generate
Open api-docs\index.html
in a browser.