{"id":26078251,"url":"https://github.com/5aradise/link-forge","last_synced_at":"2025-08-22T22:21:10.713Z","repository":{"id":259877306,"uuid":"879699072","full_name":"5aradise/link-forge","owner":"5aradise","description":"RESTful API link shortener/customizer written in Go","archived":false,"fork":false,"pushed_at":"2024-11-10T11:38:42.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T03:51:16.573Z","etag":null,"topics":["api","cicd","customizer","file-structure","go","golang","link","logging","restful","shortener"],"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/5aradise.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-10-28T11:52:25.000Z","updated_at":"2024-11-10T11:38:45.000Z","dependencies_parsed_at":"2024-10-28T15:41:08.448Z","dependency_job_id":"c06670d1-71cb-480c-bca6-4bd519d41bb6","html_url":"https://github.com/5aradise/link-forge","commit_stats":null,"previous_names":["5aradise/link-forge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/5aradise/link-forge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5aradise%2Flink-forge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5aradise%2Flink-forge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5aradise%2Flink-forge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5aradise%2Flink-forge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/5aradise","download_url":"https://codeload.github.com/5aradise/link-forge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5aradise%2Flink-forge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271710525,"owners_count":24807684,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"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":["api","cicd","customizer","file-structure","go","golang","link","logging","restful","shortener"],"created_at":"2025-03-09T03:50:32.298Z","updated_at":"2025-08-22T22:21:10.629Z","avatar_url":"https://github.com/5aradise.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# link-forge\n\n![Build Status](https://github.com/5aradise/link-forge/actions/workflows/ci.yml/badge.svg)\n\n## Description\n\nRESTful API link shortener/customizer written in Go with ci/cd set up and using the best development approaches (code structuring, advanced testing with mocking, custom logging and middleware)\n\nIt uses [Standart http.ServeMux](https://pkg.go.dev/net/http@go1.23.2#ServeMux) as the HTTP router and [Turso](https://turso.tech)(SQLite) as the cloud database with [goose](https://github.com/pressly/goose) for migration and [sqlc](https://sqlc.dev/) for compile SQL queries.\n\n## Features\n\n- Advanced custom logging\n- Automated testing with mocking, style and security checks\n\n## Technologies\n\n- Go\n- Testify\n- Mockery\n- Goose\n- Sqlc\n- SQLite(Turso)\n- Docker\n\n## Requirements\n\n- Go 1.23.2+\n\n## Local Development\n\nMake sure you're on Go version 1.23.2+\n\nCreate a copy of the `.env.example` file and rename it to `.env`\n\n### In `cmd/link-forge.go`:\n\nRecomment import lines:\n\n```go\n// _ \"github.com/tursodatabase/libsql-client-go/libsql\"\n_ \"github.com/mattn/go-sqlite3\"\n```\n\nAnd update sql.Open line:\n\n```go\nconn, err := sql.Open(\"libsql\", config.Cfg.DB.URL)   // -\u003e\nconn, err := sql.Open(\"sqlite3\", config.Cfg.DB.URL)  // \u003c-\n```\n\n### Install dependencies:\n\n```bash\ngo mod download\n```\n\n### In `scripts/`:\n\nRecomment goose lines:\n\n```bash\n# goose turso $DATABASE_URL ...\ngoose sqlite3 $DATABASE_URL ...\n```\n\n### Install goose:\n\n```bash\ngo install github.com/pressly/goose/v3/cmd/goose@latest\n```\n\n### Run migrations:\n\n```bash\n./scripts/migrateup.sh\n```\n\n### Run the server:\n\n```bash\nmake run\n```\n\nor\n\n```bash\ngo build -C cmd/link-forge/ -o ../../bin/link-forge \u0026\u0026 CONFIG_PATH=.env ./bin/link-forge\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5aradise%2Flink-forge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F5aradise%2Flink-forge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5aradise%2Flink-forge/lists"}