Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

safitech-dz/backend

Repository files navigation

Backend

System requirements

  • PHP 8.1
  • MySQL database server
  • Composer

Donwload XAMPP for windows Download Composer

Deployment steps

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

Topics import/export

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.

APIs docs

Run:

php artisan scribe:generate

Open api-docs\index.html in a browser.

Releases

No releases published

Languages