This project is a simple, action-based microservice API application built using Laravel, optimized for workload efficiency, leveraging Laravel Octane. This application handles specific POST and GET requests, process tasks asynchronously, and is developed using Test-Driven Development (TDD) with Pest. It is containerized and runnable via Docker using Laravel Sail (for dev purposes).
To learn more about the application's functionalities, do check out this wiki I crafted for this application.
- Install docker onto your PC/Laptop if you haven't done so already.
- Clone this repository:
git clone git@github.com:ThatLadyDev/microservices-api.git
- Setup the application's containers and services
docker compose build
- Configure the application's environment variables:
cp .env.example .env
- Install the application's dependencies
docker compose exec backend bash
composer install
php artisan key:generate
- Setup the application's database and tables
php artisan migrate
- a .env file
- This .env file must contain some necessary variables:
APP_PORT=6745
APP_URL=http://localhost:6745
REDIS_HOST=redis
OCTANE_SERVER=swoole
- This .env file must contain some necessary variables:
- Tools
- Swoole
- Redis
- Laravel Actions Package
- Laravel Octane
- Laravel Sail
- PHP Pest
- Principles
- TDD
- DDD