{"id":15095998,"url":"https://github.com/xujintao/testgin","last_synced_at":"2025-08-02T03:32:11.200Z","repository":{"id":57509093,"uuid":"138542239","full_name":"xujintao/testgin","owner":"xujintao","description":"a gin based api gateway","archived":false,"fork":false,"pushed_at":"2018-08-20T15:50:09.000Z","size":2516,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-15T22:22:34.302Z","etag":null,"topics":["etcd","gin","grpc"],"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/xujintao.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}},"created_at":"2018-06-25T04:08:37.000Z","updated_at":"2021-01-22T11:56:08.000Z","dependencies_parsed_at":"2022-08-30T05:42:02.058Z","dependency_job_id":null,"html_url":"https://github.com/xujintao/testgin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xujintao%2Ftestgin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xujintao%2Ftestgin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xujintao%2Ftestgin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xujintao%2Ftestgin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xujintao","download_url":"https://codeload.github.com/xujintao/testgin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228432524,"owners_count":17918887,"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":["etcd","gin","grpc"],"created_at":"2024-09-25T15:44:44.902Z","updated_at":"2024-12-06T07:41:03.039Z","avatar_url":"https://github.com/xujintao.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testgin\n\n[![Build Status](https://www.travis-ci.org/xujintao/testgin.svg?branch=master)](https://www.travis-ci.org/xujintao/testgin)\n\ntestgin is a gin based api gateway.  \n![](https://github.com/xujintao/testgin/blob/master/gateway.jpg)\n\n## Quick start\n### 1. Prepare a json config file  \n```json\n{\n    \"db\":{\n        \"name\": \"mysql\",\n        \"user\": \"root\",\n        \"password\": \"1234\",\n        \"ip\": \"127.0.0.1\",\n        \"port\": 3306,\n        \"table\":\"test\"\n    },\n    \"etcd\":{\n        \"ip\": \"127.0.0.1\",\n        \"port\": 2379\n    },\n\n    \"serverA\":{\n        \"ip\": \"127.0.0.1\",\n        \"port\": 1701\n    }\n}\n```\n\n### 2. Run it  \nFor example, your config file is $GOPATH/src/github.com/xujintao/config/config.json  \n\n**Run from source directly**\n```sh\n$ go get -u github.com/xujintao/testgin\n$ cd $GOPATH/src/github.com/xujintao/testgin\n$ go build\n$ ./testgin $GOPATH/src/github.com/xujintao/config/config.json\n\n```\n**or run from docker**\n```sh\ndocker run --rm \\\n           -it \\\n           -p 8080:8080 \\\n           -v $GOPATH/src/github.com/xujintao/config:/etc/testgin \\\n           xujintao/testgin:1.0.49 \\\n           /etc/testgin/config.json\n```\nmore tags: https://hub.docker.com/r/xujintao/testgin/tags/  \n\n### 3. visit  \nOpen chrome, press F12, then visit http://172.0.0.1:8080 \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxujintao%2Ftestgin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxujintao%2Ftestgin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxujintao%2Ftestgin/lists"}