{"id":22100457,"url":"https://github.com/paologaleotti/blaze-api-example","last_synced_at":"2025-07-01T02:34:35.427Z","repository":{"id":247651698,"uuid":"823796910","full_name":"paologaleotti/blaze-api-example","owner":"paologaleotti","description":"Example of a REST API using Go, blaze, sqlx","archived":false,"fork":false,"pushed_at":"2024-07-11T18:02:55.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T01:47:30.441Z","etag":null,"topics":["api","example","go","http","rest","sql","sqlx"],"latest_commit_sha":null,"homepage":"","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/paologaleotti.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":"2024-07-03T18:28:52.000Z","updated_at":"2024-07-14T09:49:20.000Z","dependencies_parsed_at":"2025-03-24T01:47:30.820Z","dependency_job_id":null,"html_url":"https://github.com/paologaleotti/blaze-api-example","commit_stats":null,"previous_names":["paologaleotti/blaze-api-example"],"tags_count":0,"template":false,"template_full_name":"paologaleotti/blaze","purl":"pkg:github/paologaleotti/blaze-api-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paologaleotti%2Fblaze-api-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paologaleotti%2Fblaze-api-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paologaleotti%2Fblaze-api-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paologaleotti%2Fblaze-api-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paologaleotti","download_url":"https://codeload.github.com/paologaleotti/blaze-api-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paologaleotti%2Fblaze-api-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262883963,"owners_count":23379290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api","example","go","http","rest","sql","sqlx"],"created_at":"2024-12-01T05:14:08.711Z","updated_at":"2025-07-01T02:34:35.356Z","avatar_url":"https://github.com/paologaleotti.png","language":"Go","readme":"# blaze example app\n\nThis repo contains an example of a HTTP API built using the [blaze](https://github.com/paologaleotti/blaze) template.\n\nIt features a simple CRUD API for managing todos, including:\n\n- A basic blaze scaffolding (including logging, configuration, structure...)\n- Clean structure and dependency inversion\n- SQL data storage using SQLite and [sqlx](https://github.com/jmoiron/sqlx)\n- Database migrations using [goose](https://github.com/pressly/goose)\n- Full Prometheus metrics instrumentation (enabled by environment variable)\n\n## Running the application\n\nRequirements:\n- Go \u003e= 1.22\n- sqlite3\n- goose\n\nBefore running, export the required environment variables for the service (see `internal/api/env.go`) and for Goose (see `.env.template` for all needed env).\n\nTo run the app, first create the database and apply the migrations:\n\n```sh\ngoose up\n```\n\nThen build and run the API:\n\n```sh\nmake\n```\n\n```sh\n./bin/api/main\n```\n\nDone! The API will be available at `http://localhost:3000`.\nPrometheus metrics will be available at `http://localhost:3000/metrics`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaologaleotti%2Fblaze-api-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaologaleotti%2Fblaze-api-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaologaleotti%2Fblaze-api-example/lists"}