mysql -uroot -proot
CREATE DATABASE starwars;
CREATE USER 'laravel'@'localhost' IDENTIFIED WITH mysql_native_password BY 'starwars';
GRANT ALL PRIVILEGES ON starwars.* TO 'laravel'@'localhost';
git clone [email protected]:lzielonka/sw-api.git
Create a .env
file and copy contents of .env.example
to it
Note: it assumes starwars
as the database name and mysql user to be laravel
with password starwars
, adjust if needed.
composer install
php artisan migrate
php artisan db:seed
php artisan key:generate
php artisan cache:clear
php artisan config:cache
php artisan serve --port=8080