{"id":16761487,"url":"https://github.com/gustavofreze/cheap-delivery","last_synced_at":"2026-02-07T15:14:31.955Z","repository":{"id":45232445,"uuid":"437107570","full_name":"gustavofreze/cheap-delivery","owner":"gustavofreze","description":"POC for a logistics domain application.","archived":false,"fork":false,"pushed_at":"2026-01-20T17:54:08.000Z","size":150,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-21T02:41:59.412Z","etag":null,"topics":["automated-testing","brasil","cqrs","domain-driven-design","flyway","hexagonal-architecture","outbox","php","poc","proof-of-concept"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gustavofreze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-12-10T20:37:27.000Z","updated_at":"2026-01-20T17:52:54.000Z","dependencies_parsed_at":"2024-03-17T16:25:23.835Z","dependency_job_id":"365b7315-1fb5-4e47-af98-07df251a8504","html_url":"https://github.com/gustavofreze/cheap-delivery","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/gustavofreze/cheap-delivery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavofreze%2Fcheap-delivery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavofreze%2Fcheap-delivery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavofreze%2Fcheap-delivery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavofreze%2Fcheap-delivery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gustavofreze","download_url":"https://codeload.github.com/gustavofreze/cheap-delivery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavofreze%2Fcheap-delivery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29197993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T14:35:27.868Z","status":"ssl_error","status_checked_at":"2026-02-07T14:25:51.081Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["automated-testing","brasil","cqrs","domain-driven-design","flyway","hexagonal-architecture","outbox","php","poc","proof-of-concept"],"created_at":"2024-10-13T04:42:44.229Z","updated_at":"2026-02-07T15:14:31.938Z","avatar_url":"https://github.com/gustavofreze.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cheap Delivery\n\n[![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)\n\n* [Overview](#overview)\n    - [Use cases](#use_cases)\n    - [Queries](#queries)\n* [Installation](#installation)\n    - [Repository](#repository)\n    - [Configuration](#configuration)\n    - [Tests](#tests)\n    - [Review](#review)\n* [Environment setup](#environment_setup)\n\n\u003cdiv id=\"overview\"\u003e\u003c/div\u003e \n\n## Overview\n\nCompany XPTO held a drawing among players from all over Brazil. However, the prizes need to be delivered to the winners.\nTo achieve this, it is necessary to implement a system that calculates the lowest shipping cost for each award based on\nthe distance to the winner and the weight of the prize. When contacting carriers, we received the following\ntransportation conditions:\n\n| Carrier            | Fixed value | Value per km/kg |\n|:-------------------|------------:|----------------:|\n| DHL                |    R$ 10,00 |         R$ 0,05 |\n| FedEx              |     R$ 4,30 |         R$ 0,12 |\n| Loggi (up to 5kg)  |     R$ 2,10 |         R$ 1,10 |\n| Loggi (5kg and up) |    R$ 10,00 |         R$ 0,01 |\n\n\u003cdiv id='use_cases'\u003e\u003c/div\u003e \n\n### Use cases\n\n- [Dispatch with the lowest cost](docs/USE_CASES.md#dispatch-with-the-lowest-cost)\n\n\u003cdiv id='queries'\u003e\u003c/div\u003e \n\n### Queries\n\n- [Query dispatch with the lowest cost](docs/QUERIES.md#query-dispatches-with-lowest-cost)\n\n\u003cdiv id='installation'\u003e\u003c/div\u003e \n\n## Installation\n\n\u003cdiv id='repository'\u003e\u003c/div\u003e \n\n### Repository\n\nTo clone the repository using the command line, run:\n\n```bash\ngit clone https://github.com/gustavofreze/cheap-delivery.git\n```\n\n\u003cdiv id='configuration'\u003e\u003c/div\u003e \n\n### Configuration\n\nTo install project dependencies locally, run:\n\n```bash\nmake configure\n```\n\nTo start the application containers, run:\n\n```bash\nmake start\n```\n\n\u003cdiv id='tests'\u003e\u003c/div\u003e \n\n### Tests\n\nRun only unit tests:\n\n```bash\nmake unit-test\n```\n\nRun only integration tests:\n\n```bash\nmake integration-test\n```\n\nRun all tests:\n\n```bash\nmake test \n```\n\nDisplays coverage reports in the browser:\n\n```bash\nmake show-reports \n```\n\n\u003cdiv id='review'\u003e\u003c/div\u003e \n\n### Review\n\nRun static code analysis:\n\n```bash\nmake review \n```\n\n\u003e You can check other available commands by running `make help`.\n\n\u003cdiv id='environment_setup'\u003e\u003c/div\u003e \n\n## Environment Setup\n\n### Access URLs\n\n| Environment | DNS                             | \n|:------------|:--------------------------------|\n| `Local`     | http://cheap-delivery.localhost |\n\n### Database\n\n| Environment | URL                         | Port | \n|:------------|:----------------------------|:----:|\n| `Local`     | jdbc:mysql://localhost:3307 | 3307 |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavofreze%2Fcheap-delivery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgustavofreze%2Fcheap-delivery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavofreze%2Fcheap-delivery/lists"}