Docker running Nginx, PHP, Composer and MySQL.
-
Before installing project make sure the following prerequisites have been met.
-
We’ll download the code from its repository on GitHub.
-
By this point we’ll have all the project pieces in place.
For now, this project has been mainly created for Unix (Linux/MacOS). Perhaps it could work on Windows.
All requisites should be available for your distribution. The most important are :
Check if docker-compose is already installed by entering the following command :
which docker-composeCheck Docker Compose compatibility :
The following is optional but makes life more enjoyable :
which makeTo install Git, download it and install following the instructions :
git clone https://github.com/ian-patel/spa-laravel5-vue2-todo.gitGo to the project directory :
cd spa-laravel5-vue2-todo-
Run this magic command
make setup
-
Migrate database
make setup-database
Start the application using docker
make docker-startApplication is ready on localhost 8003 port.
http://localhost:8003/
Stop the application using docker
make docker-stopPHPUnit test
make phpunitList artisan commands :
make artisanStart artisan tinker :
make tinkerhost: 127.0.0.1
port: 33063
database: todo
username: who
password: whatDeveloped by @patel_ian