{"id":15450538,"url":"https://github.com/sci3ma/demo-sf-layered-shop","last_synced_at":"2025-03-28T09:21:11.011Z","repository":{"id":175633266,"uuid":"353722554","full_name":"sci3ma/demo-sf-layered-shop","owner":"sci3ma","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-25T16:33:23.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T09:46:06.714Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sci3ma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-01T14:13:10.000Z","updated_at":"2021-05-25T16:33:26.000Z","dependencies_parsed_at":"2023-09-19T19:15:51.058Z","dependency_job_id":null,"html_url":"https://github.com/sci3ma/demo-sf-layered-shop","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"aa8ff692b2f77e65e0a1718b4934e94f55e3b2d6"},"previous_names":["sci3ma/demo-sf-layered-shop"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sci3ma%2Fdemo-sf-layered-shop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sci3ma%2Fdemo-sf-layered-shop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sci3ma%2Fdemo-sf-layered-shop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sci3ma%2Fdemo-sf-layered-shop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sci3ma","download_url":"https://codeload.github.com/sci3ma/demo-sf-layered-shop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245999651,"owners_count":20707575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T21:06:10.406Z","updated_at":"2025-03-28T09:21:10.992Z","avatar_url":"https://github.com/sci3ma.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Assumptions\n- users in memory\n- few random unit tests\n- docker\n- symfony with twig\n- no API\n- DDD\n- layered architecture\n- SOLID\n- MailHog (https://github.com/mailhog/MailHog) for email testing\n- view product and view list of products routes are open\n- add new product route needs authentication\n- minimal html/twig views, no css and js\n- ADR (Action-Domain-Responder) pattern approach\n- no leaks outside domain layer\n- framework-agnostic approach\n\n## Possible improvements\n- signed/encrypted transaction emails\n- more unit tests\n- more DDD approach (like ProductId objects, https://msgphp.github.io/)\n- better framework-agnostic approach\n- doctrine entities mapping in xml files\n- API instead of symfony+twig+forms\n- CQRS\n- Money PHP lib (https://github.com/moneyphp/money) instead string\n\n## Used helpers\n- https://github.com/sci3ma/symfony-docker\n- https://github.com/sci3ma/symfony-grumphp\n\n## Installation\nTo install project, clone this repository then build containers:\n```shell\n$ docker-compose build\n```\nrun containers:\n```shell\n$ docker-compose up -d\n```\ninstall composer dependencies:\n```shell\n$ docker exec -it php composer install\n```\nrun doctrine migrations:\n```shell\n$ docker/console doctrine:migrations:migrate\n```\n\n## Usage\n### Authentication\n```\nemail: admin@example.com\npassword: test\n```\n### Add new product\n`http://127.0.0.1:8000/product/add`\n### View product\n`http://127.0.0.1:8000/product/view/{id}`\n### View list of products\n`http://127.0.0.1:8000/product/list`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsci3ma%2Fdemo-sf-layered-shop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsci3ma%2Fdemo-sf-layered-shop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsci3ma%2Fdemo-sf-layered-shop/lists"}