This project provides you a working laravel environment without requiring you to install PHP, a web server, and any other server software on your local machine. For this, it requires Docker, Docker Compose and Task.
-
Install Docker, Docker-compose and Task;
-
Clone this project and then cd to the project folder;
-
Run the initial build of the environment:
$ task init
- Install all composer and npm dependencies:
$ task composer -- i
$ task npm -- i
- Run the application using the command:
$ task up
- Create your own
src/.env
file by copying.env.example
into thesrc
folder:
$ cp .env.example src/.env
You also can just manually open the ./src/.env file, find the
DB_HOST=127.0.0.1
line and change it toDB_HOST=mysql
-
You've done! Main page is available on http://localhost, phpMyAdmin - http://localhost:3309
-
After finishing work, stop the running containers:
$ task down
If necessary, you can independently use composer, artisan or npm with the following commands:
$ task composer -- ...
$ task artisan -- ...
$ task npm -- ...
This project is licensed under the MIT License.