Ecommark
Basic product listing page using RESTful API for demo purposes with PHP using Laravel 5.8 framework
What you need to see here?
-
Controllers (handles the API request)
- app/Http/Controllers/Api/
- app/Http/Controllers/Web/
-
Models (represents database tables as objects)
- app/Models
-
Repositories (contains reusable database interactions)
- app/Repositories
-
Service Layer (handles business logics)
- app/Services
-
Resources (transforms responses into JSON API compliant format)
- app/Http/Resources
-
Routes
- routes/
-
Database Structure (contains database table structures)
- database/migrations
-
User Interface
- resources/views/products
- resources/views/layouts
- public/js
-
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
- Visit http://localhost:9400
Screenshots
Product Listing
Product Detail