Git Product home page Git Product logo

docker-laravel-mysql-nginx-starter's Introduction


cover

Docker Laravel MySQL Nginx Starter

Project Starter For Web Application Development with Laravel, MySQL, Nginx, and Docker.

Contributors Stargazers Issues

Features

Getting Started

Follow the instructions below to set up your project.

Prerequisites

Clone This Template For Your Project

  • By Clicking Use This Template Button or You can Click Here

image

Run App With GNU Make (UNIX Based OS: MacOS, Linux)

  • make run-app-with-setup : build docker and start all docker containers with Laravel setup
  • make run-app-with-setup-db : build docker and start all docker containers with Laravel setup + database migration and seeder
  • make run-app : start all docker container
  • make kill-app : kill all docker container
  • make enter-nginx-container : enter docker nginx container
  • make enter-php-container : enter docker php container
  • make enter-mysql-container : enter docker mysql container
  • make flush-db : run php migrate fresh command
  • make flush-db-with-seeding : run php migrate fresh command with seeding
  • make code-format-check : run npm command to run prettier to check your code
  • make code-format: run npm command to run prettier to format your code
  • make code-test: run php artisan test command

Run App Manually

preview-docker-laravel

  • Create .env file for the Laravel environment from .env.example on src folder
  • Run command docker-compose build on your terminal
  • Run command docker-compose up -d on your terminal
  • Run command composer install on your terminal after going into the php container on docker
  • Run command docker exec -it php /bin/sh on your terminal
  • Run command chmod -R 777 storage on your terminal after going into the php container on docker
  • If app:key still empty on .env run php artisan key:generate on your terminal after going into the php container on docker
  • To run artisan commands like migrate, etc. go to php container using docker exec -it php /bin/sh
  • Go to http://localhost:8001 or any port you set to open Laravel

Notes

  • If you encounter a permission error when running Docker, try running it as an administrator or using sudo in Linux.
  • Check the summary of new features in Laravel 11 here or on the official page here.
  • Right now, I will postpone upgrading to PHP 8.3 because the PHP Plugin in Prettier is not supported yet. Check the issues here.
  • Don't forget to run npm run format inside your php container or run make code-format before you push your code.
  • Don't forget to run php artisan test inside your php container or run make code-test before you push your code.

docker-laravel-mysql-nginx-starter's People

Contributors

franszhafran avatar ishaqadhel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-laravel-mysql-nginx-starter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.