{"id":51594421,"url":"https://github.com/cfryerdev/golang-api-scaffold","last_synced_at":"2026-07-11T17:02:37.948Z","repository":{"id":238753096,"uuid":"797406273","full_name":"cfryerdev/golang-api-scaffold","owner":"cfryerdev","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-09T18:11:19.000Z","size":244,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-09T22:50:09.878Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cfryerdev.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":"2024-05-07T19:09:23.000Z","updated_at":"2024-05-09T18:11:23.000Z","dependencies_parsed_at":"2024-05-07T22:45:09.347Z","dependency_job_id":"50c02432-c58f-443b-b14f-cf3b0fd04a21","html_url":"https://github.com/cfryerdev/golang-api-scaffold","commit_stats":null,"previous_names":["cfryerdev/golang-api-scaffold"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cfryerdev/golang-api-scaffold","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfryerdev%2Fgolang-api-scaffold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfryerdev%2Fgolang-api-scaffold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfryerdev%2Fgolang-api-scaffold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfryerdev%2Fgolang-api-scaffold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfryerdev","download_url":"https://codeload.github.com/cfryerdev/golang-api-scaffold/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfryerdev%2Fgolang-api-scaffold/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35368768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-11T02:00:05.354Z","response_time":104,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-07-11T17:02:37.111Z","updated_at":"2026-07-11T17:02:37.939Z","avatar_url":"https://github.com/cfryerdev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zeroslope GoLang Scaffold\nThis is the zeroslope microservice architecture using GO. Average response times are around ~2ms for api calls that use a database, and non-database api calls ~28μs. Memory footprint seems to be around 9.9mb of ram allocated to the go process when running the most expensive call.\n\nRecently updated to reflect changes in GO 1.22.X.\n\n## Technologies\nHere is a list of the technologies used in this project:\n* We use GIN for http routing.\n* We use GORM for our ORM layer.\n* We use PG for postgres database access.\n\n## Endpoints\nHere is an overall layout of what endpoints come with this architecture:\n\n| Method | Route                  | Description                                  |\n| ------ | ---------------------- | -------------------------------------------- |\n| N/A    | /swagger/index.html    | Swagger UI                                   |\n| GET    | /health/               | Health check.                                |\n| POST   | /auth/login            | Creates a JWT token for access.              |\n| GET    | /sample                | Gets a list of records.                      |\n| GET    | /sample/:id            | Gets a record by id.                         |\n| POST   | /sample/               | Creates a record.                            |\n| PUT    | /sample/               | Updates a record.                            |\n| DELETE | /sample/:id            | Deletes a record.                            |\n\n## Console app?\nI added a console app just to demonstrate package dependencies and ensure we dont bleed http functionality into places they should not be.\n\n\n## Installing dependencies\n```bash\ngo mod vendor\n```\n\n## Running Api locally\n```bash\ngo run main.go\n```\nVisit: `http://localhost:8080/swagger/index.html`\n\n## Setting up postgres in docker\n```bash\ndocker run --name pgdb -p 5432:5432 -e POSTGRES_PASSWORD=P4ssw0rd -e POSTGRES_DB=zeroslope -d postgres\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfryerdev%2Fgolang-api-scaffold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfryerdev%2Fgolang-api-scaffold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfryerdev%2Fgolang-api-scaffold/lists"}