Skip to content

ryanroydev/Simple-Laravel-API-with-Service-and-Repository-Pattern

Repository files navigation

Simple-Laravel-API-with-Service-and-Repository-Pattern

This is a simple, clean, and scalable RESTful API built with Laravel designed for managing an inventory system. The project demonstrates the use of the Service Design Pattern and Repository Pattern to organize business logic and data access layers efficiently. The code also includes unit tests to ensure the API works as expected.

Features

  • Product Management: Create, update, delete, and retrieve product information.
  • Service & Repository Patterns: Implements a well-structured codebase with a separation of concerns.
  • Unit Testing: Includes test cases for common API operations (CRUD).
  • Optimized for scalability: Easy to extend for larger, more complex inventory systems.

Technologies Used

  • Laravel: PHP framework for building the API.
  • MySQL: Relational database for storing inventory data.
  • PHP Unit: For testing API endpoints.
  • Postman/Insomnia: For testing and interacting with the API endpoints.

Installation

Prerequisites:

  1. PHP >= 8.0
  2. Composer
  3. MySQL (or another relational database)
  4. Laravel >= 10.x

About

A simple Laravel API for managing an inventory system, demonstrating the Service and Repository Patterns for clean architecture. Includes unit tests for CRUD operations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors