A simple application to learn Larave JobBatching and how to show realtime detail of jobs with NextJs.
-
Laravel
-
NextJs
-
Clone the project
-
Cd to the ./Laravel-JobBatching-Backend
-
install packages via this command :
composer:install
-
Connect to your own database and run database migration :
php artisan migrate
-
Run queues via this command :
php artisan queue:work
-
Serve your server if you are not using VirtualHost :
php artisan serve
-
Cd to the ./Laravel-JobBatching-Front
-
Run :
npm install
-
Go to ./pages/upload.js and edit the Base_Url like this : http://127.0.0.1:8000.com/api
-
Serve your Next application :
npm run dev
Done, go to the 'http://localhost:3000' and test the Application.
Be Happy:)