{"id":24756961,"url":"https://github.com/vayan/sisistay","last_synced_at":"2026-04-30T16:33:34.669Z","repository":{"id":71344063,"uuid":"195427959","full_name":"vayan/sisistay","owner":"vayan","description":null,"archived":false,"fork":false,"pushed_at":"2019-07-07T07:53:31.000Z","size":5368,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-31T00:39:23.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/vayan.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":"2019-07-05T15:02:55.000Z","updated_at":"2019-07-07T07:53:33.000Z","dependencies_parsed_at":"2023-03-24T18:47:51.505Z","dependency_job_id":null,"html_url":"https://github.com/vayan/sisistay","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vayan/sisistay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vayan%2Fsisistay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vayan%2Fsisistay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vayan%2Fsisistay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vayan%2Fsisistay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vayan","download_url":"https://codeload.github.com/vayan/sisistay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vayan%2Fsisistay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32470879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":[],"created_at":"2025-01-28T14:34:48.662Z","updated_at":"2026-04-30T16:33:34.641Z","avatar_url":"https://github.com/vayan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg width=\"300\" alt=\"awesomelogo\" src=\"https://user-images.githubusercontent.com/2945291/60754604-bedc1e00-9fe3-11e9-8c75-663934a2d903.png\"\u003e\n\u003c/p\u003e\n\n### Awesome API for Order Management\n\n[![Build Status](https://travis-ci.com/vayan/sisistay.svg?branch=master)](https://travis-ci.com/vayan/sisistay)\n[![codecov](https://codecov.io/gh/vayan/sisistay/branch/master/graph/badge.svg)](https://codecov.io/gh/vayan/sisistay)\n\nHello nice reviewer(s) :wave:\n\n### Requirement\n\n* Docker\n\n### Get Started\n\nCreate a `.env` file at the root of the repo with\n`GOOGLE_API_KEY=mygreatsecret`\n\n`echo \"GOOGLE_API_KEY=replaceme\" \u003e .env`\n\nrun `./start.sh` to run the docker-compose file to start a PostgreSQL\ninstance and a Go HTTP API.\n\nAPI is available at `http://localhost:8080`\n\nTo run the tests clone the repo and do `go test ./...`\n\nYou can see the coverage on [codecov](https://codecov.io/gh/vayan/sisistay)\n\n\n### Context for Reviewer\n\n\n#### Assumptions\n\n* For the distance I assumed we're using cars\n* For the listing I ordered by ID\n\n#### Dependencies\n\nI tried to keep them minimal:\n\n* `gorilla/mux` for HTTP routing\n* `Gomega/Ginkgo` for testing\n* `gorm` as an ORM\n* Go Client for Google Maps Services\n\n\n#### Improvements\n\nThe API controllers/handler could probably be refactored to have a bit less code\nduplication\n\nThere's also no authentication\n\n#### Misc\n\nCoverage is only at 80%~~ because I didn't had time to do the setup to have\na DB for testing, else I would have unit tested all the database related\nfunctions.\n\nI also included my [postman collection](https://github.com/vayan/sisistay/blob/master/postman_collection.json) I used when developing this.\nYou guys must have yours but just in case :smile:\n\n\nThanks and have a good day :sunflower: !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvayan%2Fsisistay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvayan%2Fsisistay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvayan%2Fsisistay/lists"}