Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

solutionforest/laravel-project-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Start Kit

A simple and easy to create a Laravel Project with docker

We are using latest Laravel version 8.xx

Docker including
  • richarvey/nginx-php-fpm:latest
  • redis:5.0-alpine
  • bitnami/mariadb:latest
  • Dockerfile is base on "richarvey/nginx-php-fpm:latest" , optional to build your own image including your code.

What we do?
  • When you create a laravel project, it is quite annoying with the AppKey, database, etc. We simply it in one script, and using Docker.
    1. create new docker-compose , update all related name
    1. rename the folder
    1. remove git ( you should create your own git )

To use it, simply:

  • git clone this repository
  • Run following script ( generate laravel APP_Key , and create docker-compose for you)
cd laravel-project-starter

cd docker

./create_project.sh [Your project name] [your port]
  • then you can start your docker-compose
  • docker-compose up -d
  • It will create a database, Redis, and the web service.
  • Install the packages after you get in to the web service container
  • composer install

  • laravel paginator is now default to use Tailwind CSS, please uncomment the "Paginator::useBootstrap();" at "AppServiceProvider" if you want to use the boostrap style

Any problem, please contact alan@solutionforest.net