{"id":13670325,"url":"https://github.com/gogf/gf-demo-user","last_synced_at":"2025-12-14T23:42:01.489Z","repository":{"id":41193228,"uuid":"146747759","full_name":"gogf/gf-demo-user","owner":"gogf","description":"A simple user API service.","archived":false,"fork":false,"pushed_at":"2023-12-27T12:37:03.000Z","size":255,"stargazers_count":354,"open_issues_count":9,"forks_count":155,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-29T02:07:20.265Z","etag":null,"topics":["api","dao","demos","do","gf","go","goframe","golang","httpserver","orm","quickstart","swagger"],"latest_commit_sha":null,"homepage":"https://goframe.org","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/gogf.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}},"created_at":"2018-08-30T12:40:36.000Z","updated_at":"2025-03-01T02:44:02.000Z","dependencies_parsed_at":"2022-08-30T08:01:52.507Z","dependency_job_id":"e368679a-5350-40d4-b8f5-88af8f76b0a6","html_url":"https://github.com/gogf/gf-demo-user","commit_stats":null,"previous_names":["gogf/gf-demos"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogf%2Fgf-demo-user","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogf%2Fgf-demo-user/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogf%2Fgf-demo-user/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogf%2Fgf-demo-user/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gogf","download_url":"https://codeload.github.com/gogf/gf-demo-user/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280272,"owners_count":20912967,"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","dao","demos","do","gf","go","goframe","golang","httpserver","orm","quickstart","swagger"],"created_at":"2024-08-02T09:00:39.031Z","updated_at":"2025-12-14T23:42:01.455Z","avatar_url":"https://github.com/gogf.png","language":"Go","funding_links":[],"categories":["StandAlone Projects"],"sub_categories":[],"readme":"# A simple user API service\n\n## Installation\n\n### 1. You need a go development environment setup before everything starts taking off.\n\n### 2. Use `git clone` to clone the repo to your local folder.\n\n```\ngit clone https://github.com/gogf/gf-demo-user\n```\n\n### 3. Import `manifest/sql/create.sql` to your database.\n\n### 4. Update `manifest/config/config.yaml` according to your local configurations if necessary.\n\n### 5. Run command `go run main.go`, and you'll see something as follows if success:\n\n```\n  ADDRESS | METHOD |         ROUTE         |                                       HANDLER                                        |        MIDDLEWARE\n----------|--------|-----------------------|--------------------------------------------------------------------------------------|---------------------------\n  :8000   | ALL    | /*                    | github.com/gogf/gf/v2/net/ghttp.internalMiddlewareServerTracing                      | GLOBAL MIDDLEWARE\n----------|--------|-----------------------|--------------------------------------------------------------------------------------|---------------------------\n  :8000   | ALL    | /*                    | github.com/gogf/gf/v2/net/ghttp.MiddlewareHandlerResponse                            | GLOBAL MIDDLEWARE\n----------|--------|-----------------------|--------------------------------------------------------------------------------------|---------------------------\n  :8000   | ALL    | /api.json             | github.com/gogf/gf/v2/net/ghttp.(*Server).openapiSpec                                |\n----------|--------|-----------------------|--------------------------------------------------------------------------------------|---------------------------\n  :8000   | ALL    | /swagger/*            | github.com/gogf/gf/v2/net/ghttp.(*Server).swaggerUI                                  | HOOK_BEFORE_SERVE\n----------|--------|-----------------------|--------------------------------------------------------------------------------------|---------------------------\n  :8000   | POST   | /user/check-nick-name | github.com/gogf/gf-demo-user/v2/internal/controller/user.(*Controller).CheckNickName | service.IMiddleware.Ctx   \n          |        |                       |                                                                                      | ghttp.MiddlewareCORS      \n----------|--------|-----------------------|--------------------------------------------------------------------------------------|---------------------------\n  :8000   | POST   | /user/check-passport  | github.com/gogf/gf-demo-user/v2/internal/controller/user.(*Controller).CheckPassport | service.IMiddleware.Ctx   \n          |        |                       |                                                                                      | ghttp.MiddlewareCORS      \n----------|--------|-----------------------|--------------------------------------------------------------------------------------|---------------------------\n  :8000   | POST   | /user/is-signed-in    | github.com/gogf/gf-demo-user/v2/internal/controller/user.(*Controller).IsSignedIn    | service.IMiddleware.Ctx   \n          |        |                       |                                                                                      | ghttp.MiddlewareCORS      \n----------|--------|-----------------------|--------------------------------------------------------------------------------------|---------------------------\n  :8000   | GET    | /user/profile         | github.com/gogf/gf-demo-user/v2/internal/controller/user.(*Controller).Profile       | service.IMiddleware.Ctx\n          |        |                       |                                                                                      | ghttp.MiddlewareCORS\n----------|--------|-----------------------|--------------------------------------------------------------------------------------|---------------------------\n  :8000   | GET    | /user/profile         | github.com/gogf/gf-demo-user/v2/internal/controller/user.(*Controller).Profile       | service.IMiddleware.Ctx\n          |        |                       |                                                                                      | ghttp.MiddlewareCORS\n          |        |                       |                                                                                      | service.IMiddleware.Auth\n----------|--------|-----------------------|--------------------------------------------------------------------------------------|---------------------------\n  :8000   | POST   | /user/sign-in         | github.com/gogf/gf-demo-user/v2/internal/controller/user.(*Controller).SignIn        | service.IMiddleware.Ctx\n          |        |                       |                                                                                      | ghttp.MiddlewareCORS\n----------|--------|-----------------------|--------------------------------------------------------------------------------------|---------------------------\n  :8000   | POST   | /user/sign-out        | github.com/gogf/gf-demo-user/v2/internal/controller/user.(*Controller).SignOut       | service.IMiddleware.Ctx\n          |        |                       |                                                                                      | ghttp.MiddlewareCORS\n----------|--------|-----------------------|--------------------------------------------------------------------------------------|---------------------------\n  :8000   | POST   | /user/sign-up         | github.com/gogf/gf-demo-user/v2/internal/controller/user.(*Controller).SignUp        | service.IMiddleware.Ctx\n          |        |                       |                                                                                      | ghttp.MiddlewareCORS\n----------|--------|-----------------------|--------------------------------------------------------------------------------------|---------------------------\n```\n\n# GoFrame Sites\n\n### GoFrame Repo\n\n* [https://github.com/gogf/gf](https://github.com/gogf/gf)\n\n### GoFrame Home\n\n* [https://goframe.org](https://goframe.org) (中文)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgogf%2Fgf-demo-user","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgogf%2Fgf-demo-user","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgogf%2Fgf-demo-user/lists"}