You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create backend application API for business domain.
Create your repo (preferably on Github) for backend-dev-task solution and share it us.
Requirements:
Use Laravel 11
Use OOP
Follow best practices SOLID, Clean code etc.
Data storage solution is up to you. DB, filesystem, cache, memory...
Cover code by tests. If you need use e.g. PHPUnit. There is no need to cover all code, just create a couple to show the principle
Optional requirements for which additional points will be awarded for:
Using DDD (Domain-Driven Design) together with Laravel
Business logic:
Online shop has product sets and products. One product can only exist within one set. Product set is published if at least one product inside the set is published.
Set cannot contain 0 products. Only non-confidential data is returned for public API. Restricted API endpoints must be secured by API key.
Product set consists from:
id
name - maximum length of 60
slug - made from name by default
collection of products
Product consists from:
id
sku code
name - maximum length of 40
slug - made from name by default
type - device or service
condition - new, used, refurbished
description title
description text
price
wholesalePrice - confidential
published - true, false
Functionality
[Public] Find product set - returns non-confidential data for active sets