This is a learning project made with the video guidance from excellent YouTube tutorial channel freeCodeCamp.org. I am very grateful for many excellent videos with Laravel projects to Mr. Zura from @TheCodeholic. Feel free to visit to his channel and learn more.
Built with these technologies:
|
|
|
Build on Laravel 10 starter template with Vue, Tailwindcss and Inertia.js. If you run this project outside Docker container, you need to have Node installed.
-
Download the project (or use
git clone
) -
Go to the project's root directory using terminal
-
Run
composer install
-
Create database for project
-
Copy
.env.example
into.env
filecp .env.example .env
and configure database credentials. Adjust other parameters, if needed.
-
Run DB migrations:
php artisan migrate
-
Generate app key:
php artisan key:generate --ansi
-
Create a link to public storage folder:
php artisan storage:link
-
Run
npm run build
to prepare assets for production (or e.g. if you want PHPStorm to show TW classes in typehints) -
Run
npm run dev
to start the local development server at http://localhost
If you intend to set up external filesystem disk, e.g. AWS s3, ensure you have correct credentials stated in your .env file and FILESYSTEM_DISK
parameter. If it is not set to local
, for every file upload, UploadFileToCloudJob
class wil be triggered if Laravel queue started.
If you want to run Laravel queue worker on hosting server, consider running it with nohup
:
nohup php artisan queue:work --daemon &
To check (or kill) for the running artisan processes run:
ps -ax | grep artisan