- Clone the repository and
cd
to the destination folder; - Run
composer install
; - Rename
.env.example
to.env
and specify your MySQL connection credentials (DB_HOST
,DB_DATABASE
,DB_USERNAME
,DB_PASSWORD
) or use SQLite (instructions below); - Run
php artisan migrate
; - Run
php artisan serve
; - Open http://127.0.0.1:8000 (or another IP returned by the previous command) in your browser.
You can also use SQLite instead of MySQL (step 3). To make it work create a database file right in the repo folder:
touch database.sqlite
Then change settings in the .env
file:
DB_CONNECTION=sqlite
DB_DATABASE=/absolute/path/to/database.sqlite
After changing the .env
file don't forget to run php artisan config:cache
. Now you can continue from the step 4.