mggflow / laravel-microservice-base
The Laravel Microservice base.
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Type:project
Requires
- php: ^8.1
- ext-pdo: *
- guzzlehttp/guzzle: ^7.2
- laravel/framework: ^10.10
- laravel/sanctum: ^3.2
- laravel/tinker: ^2.8
- mggflow/lv-msvc: ^2.0
Requires (Dev)
- fakerphp/faker: ^1.9.1
- laravel/pint: ^1.0
- laravel/sail: ^1.18
- mockery/mockery: ^1.4.4
- nunomaduro/collision: ^7.0
- phpunit/phpunit: ^10.1
README
About
This project is base of microservice implements on Laravel.
Usage
Check all info about ports, volumes and other settings in:
./docker-compose.yml
, ./.env.example
, ./config
. Also you can find useful bash scripts in ./scripts
- Create project in dir "msvc" via composer
composer create-project mggflow/laravel-microservice-base msvc
- Add files to GIT
# git init
git add --all
- Install composer dependencies
composer install
- Use Docker for development without hardware dependencies
docker compose up -d
- Create your app logic with all advantages of Laravel. For example see app/HTTP/Controllers/GreetingsController.php and http://127.0.0.1:8009/api/greeting route
In the alternative case you can separately download "./scripts/install.sh" from GitHube repo and then
sudo sh ./install.sh -u1000 -g1000 -r"mggflow/laravel-microservice-base" -d"/mnt/path/to/project"
P.S.: with the same script you can install your project based on this