{"id":25177871,"url":"https://github.com/prashantbtkl/goforge","last_synced_at":"2026-02-09T21:30:56.228Z","repository":{"id":252646107,"uuid":"840999044","full_name":"PrashantBtkl/goforge","owner":"PrashantBtkl","description":"generate entire CRUD backend for golang echo and postgres with one command ","archived":false,"fork":false,"pushed_at":"2024-10-27T11:32:47.000Z","size":97,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-25T02:22:46.288Z","etag":null,"topics":["code-generation","echo","golang","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Python","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/PrashantBtkl.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,"zenodo":null}},"created_at":"2024-08-11T10:44:20.000Z","updated_at":"2024-10-27T11:32:51.000Z","dependencies_parsed_at":"2024-08-27T06:29:20.037Z","dependency_job_id":"44613041-6a51-4ebe-bd04-a9c73da1146a","html_url":"https://github.com/PrashantBtkl/goforge","commit_stats":null,"previous_names":["prashantbtkl/goforge"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/PrashantBtkl/goforge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrashantBtkl%2Fgoforge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrashantBtkl%2Fgoforge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrashantBtkl%2Fgoforge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrashantBtkl%2Fgoforge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PrashantBtkl","download_url":"https://codeload.github.com/PrashantBtkl/goforge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrashantBtkl%2Fgoforge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29281964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T19:05:41.198Z","status":"ssl_error","status_checked_at":"2026-02-09T19:05:37.449Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["code-generation","echo","golang","postgresql"],"created_at":"2025-02-09T14:49:49.593Z","updated_at":"2026-02-09T21:30:56.212Z","avatar_url":"https://github.com/PrashantBtkl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\n\u003ch1 align=\"center\"\u003eGoForge\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\n \u003cdiv align=\"center\"\u003e\n\t \n[![PyPi package version](https://img.shields.io/pypi/v/goforge)](https://pypi.org/project/goforge/)\t \n[![PyPi downloads](https://static.pepy.tech/badge/goforge)](https://pypi.org/project/goforge/)\n[![PyPI version](https://img.shields.io/pypi/pyversions/goforge?color=%2344CC11\u0026style=flat-square)](https://pypi.org/project/goforge/)\n\u003cbr\u003e\n\u003cbr\u003e\ngenerate the entire CRUD backend for golang echo and postgres with one command 💙\n\u003c/div\u003e\n    \n## Description\n This tool is designed to start a project and edit the files later. It uses sqlc to generate all the sql related code. Make sure sqlc, goimports, gofmt, and docker are installed.\n\n ## Prerequisites\n ```bash\nsnap install sqlc\ngo install golang.org/x/tools/cmd/goimports@latest\n```\n\n ## Installation\n ```bash\npip install goforge\n```\n## Quick start\ngenerate the project code\n```bash\n$ goforge -c example.yml\n```\ndelete the project\n```bash\n$ goforge -c example.yml -d\n```\n\n## API Configuration Documentation\n\nedit the yaml as per your requirements\n```yaml\nproject_path: \"example\" # specifies the root directory for the project\nschema_file: \"example.sql\" # defines the sql schema file for the project\nproject_mod: \"example.com/my_crud_app\" # go.mod project name\ndb:\n  setup_postgres_local: true # setups a postgres docker instance for seamless testing, set false if you want to connect with your db instance\n  # host, port, dbname, user and password are accessed only if setup_postgres_local = false, you can skip these values if setup_postgres_local = true\n  host: localhost\n  port: 5432\n  dbname: postgres\n  user: postgres\n  password: postgres123\nhandlers:\n  - name: CreateUser # handler function name\n    path: \"/v1/api/user\" # api path\n    sql:\n       name: CreateUser # sqlc model method name\n       annotation: exec # annotations compatible with sqlc, for eg: \"one\", \"many\" and \"exec\"\n       query: \"INSERT INTO users (name, email) VALUES ($1, $2)\"\n    request:\n       method: \"POST\"\n  - name: GetUsers\n    path: \"/v1/api/users\"\n    sql:\n      name: GetUsers\n      annotation: many\n      query: \"SELECT id, name, email FROM users LIMIT $1 OFFSET $2\"\n    request:\n      method: \"GET\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashantbtkl%2Fgoforge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprashantbtkl%2Fgoforge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashantbtkl%2Fgoforge/lists"}