[Idara API] is a boilerplate for building API applications using Laravel 11, incorporating Domain-Driven Design (DDD), role-based authentication, and various other features.
To access the documentation goto the below link
- Link to api routes
http://localhost:8000/v1
- Link to documentation
http://localhost:8000/v1/documentation
To get a local copy up and running, follow these steps.
In order to run this boilerplate, you need:
- PHP ^8.2
use the following link to setupPHP
if you dont have it already installed on your computer
- Composer
use the following link to DownloadComposer
if you dont have it already installed on your computer
composer create-project mrprotocoll/laravel-api-boilerplate my-api
Install dependencies:
composer install
create .env file, change using the .env.example file and update the Database, Google Oauth (optional), and Email credentials.
cp .env.example .env
Generate keys, Run the migration and seed roles:
php artisan key:generate
php artisan migrate --seed
The following command can be used to run the application.
php artisan serve