Ensure you have php and composer installed
First install the required dependencies
composer install
Then copy the .env.example file to .env
cp .env.example .env
And then run this command to generate the application key
php artisan key:generate
Set up a mysql database and an account with privileges to use that database using phpMyAdmin or mysql-cli then set these values in your .env
file
DB_DATABASE=<your database name>
DB_USERNAME=<DB username>
DB_PASSWORD=<DB password>
Note: Replace <your database name>
, <DB username>
, <DB password>
with ones you created
Run this command to create the tables and seed the testing data
php artisan migrate:fresh --seed
Then run this to make the storage accessible
php artisan storage:link
Now run this command to start the development server
php artisan serve
Then go to the address shown in your browser (e.g. http://127.0.0.1:8000)