{"id":37103194,"url":"https://github.com/sreejeet/garagesale","last_synced_at":"2026-01-14T12:30:05.203Z","repository":{"id":104605385,"uuid":"269754917","full_name":"sreejeet/garagesale","owner":"sreejeet","description":"A RESTful Go web service","archived":false,"fork":false,"pushed_at":"2020-08-03T16:25:16.000Z","size":224,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-15T00:59:34.155Z","etag":null,"topics":["docker","docker-compose","golang","postgresql","restful-api","sql"],"latest_commit_sha":null,"homepage":"","language":"Go","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/sreejeet.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":"2020-06-05T19:35:21.000Z","updated_at":"2020-08-27T03:03:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff72ae86-4fdc-475b-9717-5af7f670a731","html_url":"https://github.com/sreejeet/garagesale","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sreejeet/garagesale","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sreejeet%2Fgaragesale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sreejeet%2Fgaragesale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sreejeet%2Fgaragesale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sreejeet%2Fgaragesale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sreejeet","download_url":"https://codeload.github.com/sreejeet/garagesale/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sreejeet%2Fgaragesale/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["docker","docker-compose","golang","postgresql","restful-api","sql"],"created_at":"2026-01-14T12:30:02.452Z","updated_at":"2026-01-14T12:30:05.092Z","avatar_url":"https://github.com/sreejeet.png","language":"Go","readme":"\u003cimg alt=\"GitHub go.mod Go version\" src=\"https://img.shields.io/github/go-mod/go-version/sreejeet/garagesale\"\u003e\u0026nbsp;\u003cimg src=\"https://img.shields.io/badge/Ask%20me-anything-1abc9c.svg\"\u003e\n[![Go Report Card](https://goreportcard.com/badge/github.com/sreejeet/garagesale)](https://goreportcard.com/report/github.com/sreejeet/garagesale)\n\n\u003cimg alt=\"Image\" src=\"https://i.imgur.com/5K6jBOC.png\"\u003e\n\n# Production ready RESTful API service.\n\nGaragesale is a production ready RESTful API service running on docker. It is build without any framework to keep the service as light as possible.\n\nThis is a product of my work while training for Go based web services.  \nThe open source [training material](https://github.com/ardanlabs/service-training) is provided by [Ardan Labs](http://www.ardanlabs.com/).\n\n## Tech stack\n1. Go's [net/http](https://golang.org/pkg/net/http/)\n2. [Docker](https://www.docker.com)\n3. [PostgreSQL](https://www.postgresql.org/)\n4. [JSON Web Tokens](https://jwt.io/)\n5. [Zipkin](https://zipkin.io)\n6. [OpenCensus](https://opencensus.io)\n\n## Run on local system\n1. Run `docker-compose up`\n2. Use `cmd/sales-admin/main.go` to migrate schema / seed database / add user / generate private key\n3. User `cmd/sales-api/main.go` to start the sales API which listens at localhost:8000 by default\n\n## A consolidated list of resources I found useful.\n(Please raise an issue if you find broken links)\n1. [The complete guide to Go net/http timeouts](https://blog.cloudflare.com/the-complete-guide-to-golang-net-http-timeouts/)\n2. [So you want to expose Go on the Internet](https://blog.cloudflare.com/exposing-go-on-the-internet/)\n3. [Parsing JSON files With Golang](https://tutorialedge.net/golang/parsing-json-with-golang/)\n4. [Go database/sql tutorial](http://go-database-sql.org/)\n5. [Docker Compose](https://docs.docker.com/compose/compose-file)\n6. [Docker logs](https://docs.docker.com/config/containers/logging/)\n7. [Package Oriented Design](https://www.ardanlabs.com/blog/2017/02/package-oriented-design.html)\n8. [Package conf](https://github.com/ardanlabs/service-training/blob/master/06-configuration/internal/platform/conf/README.md)\n9. [Error Handling in Go](https://medium.com/@hussachai/error-handling-in-go-a-quick-opinionated-guide-9199dd7c7f76)\n10. [Package initialization and program execution order](https://yourbasic.org/golang/package-init-function-main-execution-order/)\n11. [How to collect, standardize, and centralize Golang logs](https://www.datadoghq.com/blog/go-logging/)\n12. [Error handling and Go](https://blog.golang.org/error-handling-and-go)\n13. [Structs and Interfaces](https://www.golang-book.com/books/intro/9) (This is part of a book from 2012. Outdated, but a good read nonetheless.)\n14. [Understanding the context package in golang](http://p.agnihotry.com/post/understanding_the_context_package_in_golang/)\n15. [Go: Context and Cancellation by Propagation](https://medium.com/a-journey-with-go/go-context-and-cancellation-by-propagation-7a808bbc889c)\n16. [PostgreSQL Joins](https://www.postgresqltutorial.com/postgresql-joins/)\n17. [PostgreSQL SUM Function](https://www.postgresqltutorial.com/postgresql-sum-function/)\n18. [Profiling Go Programs](https://blog.golang.org/pprof)\n19. [Middleware (Advanced)](https://gowebexamples.com/advanced-middleware/)\n20. [Creating a Middleware in Golang for JWT based Authentication](https://hackernoon.com/creating-a-middleware-in-golang-for-jwt-based-authentication-cx3f32z8)\n21. [How to instrument Go code with custom expvar metrics](https://sysdig.com/blog/golang-expvar-custom-metrics/)\n22. [Go App Monitoring: expvar, Prometheus and StatsD](https://www.opsdash.com/blog/golang-app-monitoring-statsd-expvar-prometheus.html)\n23. [Expose application metrics with expvar](http://blog.ralch.com/tutorial/golang-metrics-with-expvar/)\n24. [Golang context.WithValue](https://stackoverflow.com/a/40380147/13512702)\n25. [How to pass context in golang request to middleware](https://stackoverflow.com/a/49247940/13512702)\n26. [How To Use Struct Tags in Go](https://www.digitalocean.com/community/tutorials/how-to-use-struct-tags-in-go)\n27. [Tags in Golang](https://medium.com/golangspec/tags-in-golang-3e5db0b8ef3e)\n28. [JSON Web Token Claims](https://auth0.com/docs/tokens/concepts/jwt-claims)\n29. [Implementing JSON Web Token (JWT) to secure your app](https://blog.nextzy.me/implementing-json-web-token-jwt-to-secure-your-app-c8e1bd6f6a29)\n30. [Symmetric vs Asymmetric JWTs](https://blog.usejournal.com/symmetric-vs-asymmetric-jwts-bd5d1a9567f6)\n31. [Hacking JSON Web Tokens (JWTs)](https://medium.com/swlh/hacking-json-web-tokens-jwts-9122efe91e4a)\n32. [Critical vulnerabilities in JSON Web Token libraries](https://auth0.com/blog/critical-vulnerabilities-in-json-web-token-libraries/)\n33. [Zipkin Tutorial: Get Started Easily With Distributed Tracing](https://www.scalyr.com/blog/zipkin-tutorial-distributed-tracing/)\n34. [OpenCensus Tracing](https://opencensus.io/tracing/)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsreejeet%2Fgaragesale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsreejeet%2Fgaragesale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsreejeet%2Fgaragesale/lists"}