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-compose
Check Docker Compose compatibility :
The following is optional but makes life more enjoyable :
which make
To install Git, download it and install following the instructions :
git clone https://github.com/ian-patel/spa-laravel5-vue2-todo.git
Go 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-start
Application is ready on localhost 8003 port.
http://localhost:8003/
Stop the application using docker
make docker-stop
PHPUnit test
make phpunit
List artisan commands :
make artisan
Start artisan tinker :
make tinker
host: 127.0.0.1
port: 33063
database: todo
username: who
password: what
Developed by @patel_ian