/ecommark

Primary LanguagePHP

Ecommark

Basic product listing page using RESTful API for demo purposes with PHP using Laravel 5.8 framework

What you need to see here?

  1. Controllers (handles the API request)

    • app/Http/Controllers/Api/
    • app/Http/Controllers/Web/
  2. Models (represents database tables as objects)

    • app/Models
  3. Repositories (contains reusable database interactions)

    • app/Repositories
  4. Service Layer (handles business logics)

    • app/Services
  5. Resources (transforms responses into JSON API compliant format)

    • app/Http/Resources
  6. Routes

    • routes/
  7. Database Structure (contains database table structures)

    • database/migrations
  8. User Interface

    • resources/views/products
    • resources/views/layouts
    • public/js
  9. Automated Tests (contains basic API testing)

    • tests/api
    Run tests via : vendor/bin/codecept run api
    

Installation & Setup

  • Make sure you have docker installed
  • Go to the project directory and execute
./setup.sh

Screenshots

Product Listing

Product Listing Image

Product Detail

Product Detail Image