Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.13 KB

File metadata and controls

23 lines (18 loc) · 1.13 KB

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