Skip to content

This repository contains the source code for Laravel 10 with Docker.

Notifications You must be signed in to change notification settings

atun29dev/laravel10-with-docker

Repository files navigation

README

This repository contains the source code for Laravel 10 with Docker. It includes running the source code by Apache, using Cronjob, and using pre-commit to automatically check code syntax and formatting.

Note for GIT

  • Please help apply GitFlow for this repository (https://danielkummer.github.io/git-flow-cheatsheet).

  • Example:

    • Name for any features -> feature/xxx-yyy. Ex: feature/implement-login-ui
    • Name for any bugs -> bug-fixes/xxx-yyy. Ex: bug-fixes/wrong-message-when-login
  • When you create a name for the Pull Request, please help set a meaningful name and set description if needed. Should capitalize the first letter and do not use special characters.

Tech stacks

  • PHP 8.2.x
  • Laravel 10.x
  • NodeJS 16.20.x
  • NPM 8.19.x

Prerequisite

  • Docker
  • Docker compose

Getting started

Setting environment

cp .env.example .env

Installation

docker-compose build

Running

docker-compose up

Steps build

Make sure the web service is running

Start bash shell in the specified directory

docker-compose exec web bash -c "cd /var/www/html/ && bash"

Installation PHP's dependencies

composer install

Installation JavaScript's dependencies. (This is necessary to use pre-commit and more)

npm install

Generation APP_KEY

php artisan key:generate

Re-configuring cache

php artisan config:cache

Migration DB

php artisan migrate

Author

About

This repository contains the source code for Laravel 10 with Docker.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published