A simple "Product" module for Backend Developer- Skill Assessment Test.
- Download the zip folder from the github repository.
- Create a directory named
modules/Product
at application root - Unzip the downloaded folder and copy contents inside
modules/Product
directory - Now open
config/app.php
and register module service provider.
'providers' => [
...
/*
* Package Service Providers...
*/
\Modules\Product\Providers\ProductServiceProvider::class,
]
- Now open composer.json and go to
autoload psr-4
.
"autoload": {
"psr-4": {
...
"Modules\\Product\\": "modules/Product/"
}
}
- Set application environment variable
MAIL_MAILER=log
- Now open the command prompt and run
php artisan config:cache
composer dump-autoload
php artisan migrate
Download the postman collection from email attachment and test the APIs.