-
Install composer dependency, run:
make composer_dep
-
Set permissions on the project directory so that it is owned by your non-root user:
sudo chown -R $USER:$USER $PWD
-
Make a copy of the .env.example
cp .env.example .env
...and fill fields:
DB_CONNECTION=mysql DB_HOST=db DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=laraveluser DB_PASSWORD=your_laravel_db_password
-
Set the application key for the Laravel application
docker-compose exec app php artisan key:generate
-
Optional* >> To cache these settings into a file, which will boost your application's load speed, run:
docker-compose exec app php artisan config:cache
Your configuration settings will be loaded into /var/www/bootstrap/cache/config.php on the container.
-
Creating a User for MySQL
- Inside the container:
docker-compose exec db bash root@e42d3f4adfg:/# mysql -u root -p mysql> GRANT ALL ON laravel.* TO 'laraveluser'@'%' IDENTIFIED BY 'your_laravel_db_password'; mysql> FLUSH PRIVILEGES; mysql> EXIT;
-
Run FrontEnd
cd client && npm start
before need install dependencies
The Laravel framework is open-sourced software licensed under the MIT license.