{"id":20494947,"url":"https://github.com/victorighalo/adonisjs-deliveryapi","last_synced_at":"2026-04-20T01:04:21.265Z","repository":{"id":116101760,"uuid":"173284443","full_name":"victorighalo/adonisjs-deliveryapi","owner":"victorighalo","description":"An API that emulates Google Locations and Distance Matrix API for calculating delivery cost for LGAs in Lagos Nigeria","archived":false,"fork":false,"pushed_at":"2019-03-01T11:53:16.000Z","size":146,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T18:25:23.235Z","etag":null,"topics":["adonis","api","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/victorighalo.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":"2019-03-01T10:39:15.000Z","updated_at":"2023-03-08T14:23:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"57ac2ff3-a117-449f-af92-e39b14e4b6f2","html_url":"https://github.com/victorighalo/adonisjs-deliveryapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/victorighalo/adonisjs-deliveryapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorighalo%2Fadonisjs-deliveryapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorighalo%2Fadonisjs-deliveryapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorighalo%2Fadonisjs-deliveryapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorighalo%2Fadonisjs-deliveryapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victorighalo","download_url":"https://codeload.github.com/victorighalo/adonisjs-deliveryapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorighalo%2Fadonisjs-deliveryapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32028550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"ssl_error","status_checked_at":"2026-04-20T00:17:31.068Z","response_time":55,"last_error":"SSL_read: 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":["adonis","api","nodejs"],"created_at":"2024-11-15T17:44:04.539Z","updated_at":"2026-04-20T01:04:21.241Z","avatar_url":"https://github.com/victorighalo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# An API that emulates Google Locations and Distance Matrix API for courier calculating delivery cost\n\n## Instalation\n\n1. Clone repo \n2. Install - `npm install`.\n3. Create env file with this -\u003e [link to Gist!]( https://gist.github.com/victorighalo/8d552e3695f7ea394bc1082295f93dd8)\n4. Run Mmigration\n```bash\nadonis migration run\n```\n4. Run Seeder\n ```js\n adonis make:seed User;\n ```\n\n## Authenticate\n\n1. Login\n   Route - [GET] - /login \n   \n   Request \n   `` email: 'admin@app.com', password: '123456' ``\n   \n2. Copy token to use for subsequent requests\n\n\n## Get Locations\n\nRoute - [GET] - /locations\n\nResponse\n```js\n  \"data\": [\n  {\"name\":\"Ajeromi-Ifelodun\",\"id\":1, \"zone\": 3},\n  ...\n  ]\n```\n\n## Calculate Delivery cost\n\nRoute - [POST] - /costmatrix\n\n1. Request\n    ```js\n    from: 5,\n    to:   12,\n    weight: 9\n    ```\n    \n2. Response\n    ```js\n    {\n    \"price\": 3800,\n    \"message\": \"Success\"\n    }\n    ```\n\n## Run Server\n```js\nadonis serve --dev or adonis serve\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorighalo%2Fadonisjs-deliveryapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorighalo%2Fadonisjs-deliveryapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorighalo%2Fadonisjs-deliveryapi/lists"}