Laravel + Vue.js app for creating a movie list where you can keep track which movies you are currently watching / watched and lets you rate them.
Make sure Docker Desktop is installed on your machine if you are using windows or mac, or docker-compose if you are using linux.
-
Navigate to the laradock folder and create your
.env
file withcp env-example .env
-
Update your env file with the following:
MYSQL_DATABASE= the desired name of your database MYSQL_USER= the user you want to connect with (can be root) MYSQL_PASSWORD= password for the user MYSQL_PORT=3306 MYSQL_ROOT_PASSWORD= if you are using the root user same as MYSQL_PASSWORD
-
If you want to use XDEBUG then set the
PHP_FPM_INSTALL_XDEBUG
variable totrue
-
Navigate to the project's root directory and create the
.env
file withcp .env.example .env
-
Open your Laravel’s
.env
file and update the following variables:DB_CONNECTION=mysql DB_HOST=mysql DB_PORT=3306 DB_DATABASE= laradock MYSQL_DATABASE variable's value DB_USERNAME= laradock MYSQL_USER variable's value DB_PASSWORD= laradock MYSQL_PASSWORD variable's value
-
Navigate to the
laradock
folder and start your docker containers withdocker-compose up -d --build workspace nginx mysql
Note: The building process might take a while -
Bash into the
workspace
container withdocker-compose exec workspace bash
-
Install the composer packages with
composer install
-
Install the npm packages with
npm install
-
Compile the assets with
npm run dev
-
Generate your application key with
php artisan key:generate
-
Create a symbolic link from
public/storage
tostorage/app/public
with:php artisan storage:link
-
Run the migrations with
php artisan migrate
-
Well done! Visit
http://localhost
docker-compose up -d --build workspace nginx mysql
docker-compose exec workspace bash
composer install
npm install
npm run dev
php artisan key:generate
php artisan migrate