Laravel application made with with 👉Docker👈
Clone the repository
git clone https://github.com/Weavous/LaraVuePost
Copy the environment variables example file
cp backend/.env.example backend/.env
After clone the repository, configure the environment variables
DB_CONNECTION=mysql
DB_HOST=laravuepost_mysql_1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=secret
Now you have to build the image from Docker image
docker-compose up -d --build
Install Laravel dependencies
docker-compose run --rm composer install
Run Laravel migrations/seeders
docker-compose run --rm artisan migrate:fresh --seed
Create an Laravel application key
docker-compose run --rm artisan key:generate
Run Laravel tests
docker-compose run --rm artisan test
Inside Browser Directory, Start Vue application
npm run dev
You can open Laravel application in localhost:8080
You can open Vue application in localhost:8081
If necessary, you can remove all images using docker system prune -a --volumes
Any questions or suggestions regarding the project, please contact me on 📧 [email protected]