Skip to content

A simple, action-based microservice API application using Laravel, optimized for workload efficiency, leveraging Laravel Octane.

Notifications You must be signed in to change notification settings

ThatLadyDev/microservices-api

Repository files navigation

Microservices API Logo

About This Project

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.

How to setup this project

  1. Install docker onto your PC/Laptop if you haven't done so already.
  2. Clone this repository:
git clone git@github.com:ThatLadyDev/microservices-api.git
  1. Setup the application's containers and services
docker compose build
  1. Configure the application's environment variables:
cp .env.example .env
  1. Install the application's dependencies
docker compose exec backend bash
composer install
php artisan key:generate
  1. Setup the application's database and tables
php artisan migrate

Application Must Haves

  • 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

Tools, Services and Principles Used

  • Tools
    • Swoole
    • Redis
    • Laravel Actions Package
    • Laravel Octane
    • Laravel Sail
    • PHP Pest
  • Principles
    • TDD
    • DDD

About

A simple, action-based microservice API application using Laravel, optimized for workload efficiency, leveraging Laravel Octane.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published