A Laravel With Rest-Full Best Practices
- PHP >= 8.0
- Composer
- Laravel 9.x
- Docker
- Docker Compose
-
Clone the repository
https://github.com/usyeimar/backend-exam-api.git
-
Install dependencies
composer install
-
Create a copy of the .env file
cp .env.example .env
-
Generate the application key
php artisan key:generate
-
Run the migrations and seeders
php artisan migrate --seed
-
Project comes with Passport include as the default authenticatin method. You should now install it using this command.
php artisan passport:install
-
Copy-paste the generated secrets and IDs into your
.env
file like so.PASSPORT_PERSONAL_ACCESS_CLIENT_ID=1 PASSPORT_PERSONAL_ACCESS_CLIENT_SECRET=mR7k7ITv4f7DJqkwtfEOythkUAsy4GJ622hPkxe6
-
Run the application
php artisan serve
-
Run Imsomnia API
php artisan test