{"id":19789265,"url":"https://github.com/coder2z/yangon","last_synced_at":"2025-11-23T05:04:12.847Z","repository":{"id":53940463,"uuid":"316142214","full_name":"coder2z/Yangon","owner":"coder2z","description":"Yangon 个人脚手架","archived":false,"fork":false,"pushed_at":"2022-05-14T14:25:33.000Z","size":263,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T14:45:07.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/coder2z.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}},"created_at":"2020-11-26T06:28:52.000Z","updated_at":"2022-05-14T14:25:36.000Z","dependencies_parsed_at":"2022-08-13T05:10:28.078Z","dependency_job_id":null,"html_url":"https://github.com/coder2z/Yangon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coder2z/Yangon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder2z%2FYangon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder2z%2FYangon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder2z%2FYangon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder2z%2FYangon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coder2z","download_url":"https://codeload.github.com/coder2z/Yangon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder2z%2FYangon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285903255,"owners_count":27251121,"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-11-23T02:00:06.149Z","response_time":135,"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":[],"created_at":"2024-11-12T06:30:50.497Z","updated_at":"2025-11-23T05:04:12.820Z","avatar_url":"https://github.com/coder2z.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yangon\n\nSelf-use Development scaffolding\n\n![](https://img.shields.io/badge/windowns10-Development-d0d1d4)\n![](https://img.shields.io/badge/golang-1.16-blue)\n![](https://img.shields.io/badge/version-1.0.1-r)\n\n## :rocket:Installation\n\n```\ngo get -u github.com/coder2z/yangon\n```\n\nor\n\n```\ngit clone https://github.com.cnpmjs.org/coder2z/yangon.git\n\ncd yangon\n\ngo install\n```\n\n## :anchor:Usage\n\n### Verify that the installation is complete\n\n**input:**\n```shell\nλ yangon --help\n```\n\n**output:**\n```console\nUsage:\n  Yangon [command]\n\nAvailable Commands:\n  go          db,handle,server,route code production\n  help        Help about any command\n  new         Generate app scaffolding\n  version     app version\n\nFlags:\n  -h, --help   help for Yangon\n\nUse \"Yangon [command] --help\" for more information about a command.\n```\n\n### Create project\n\n**input:**\n```shell\nλ yangon new -a appname -p projectname\n\nλ cd projectname\n```\n\n**output:**\n```                                     \n├─build                                   \n│  └─appname       //   dockerfile                       \n├─cmd              //   app main                       \n│  └─appname                              \n│      └─app                              \n├─config           //   config                       \n├─deployments      //   k8sfile                      \n│  └─appname                              \n│      └─templates                        \n├─internal         //   business code                       \n│  └─appname                              \n│      ├─api                              \n│      │  └─v1                            \n│      │      ├─handle                    \n│      │      ├─middleware                \n│      │      └─registry                  \n│      ├─map                              \n│      ├─model                            \n│      ├─services                         \n│      └─validator                        \n├─pkg              //   Public package                         \n│  ├─constant                             \n│  ├─rand                                 \n│  ├─recaptcha                            \n│  ├─response                             \n│  └─rpc                                  \n├─scripts          //   construct                          \n│  └─appname                              \n└─test                                    \n```\n\n### Generate CRUD code\n\nProvided that your database has a corresponding table\n\n#### modify config \n\n```shell\nvim config/config.toml\n```\n\n#### Set up database connection config\n\n```shell\n[mysql.main]\n    tablePrefix = \"\"\n    host = \"127.0.0.1\"\n    username = \"root\"\n    password = \"root\"\n    dbName = \"\"\n    type = \"mysql\"\n    debug = true\n```\n\n#### Generate\n\n**input:**\n\n```shell\nλ yangon go -a appname -p projectname -v v1\n```\n\n**output:**\n```\n├─internal\n│  └─appname\n│      ├─api\n│      │  └─v1\n│      │      ├─handle          //code Here     \n│      │      ├─middleware      \n│      │      └─registry        //code Here    \n│      ├─map                    //code Here    \n│      ├─model                  //code Here    \n│      │  ├─access_token\n│      │  └─user\n│      ├─services               //code Here    \n│      │  ├─access_token\n│      │  └─user\n│      └─validator\n```\n\n## :tada:Contribute code\n\nOpen source projects are inseparable from everyone’s support. If you have a good idea, encountered some bugs and fixed\nthem, and corrected the errors in the document, please submit a Pull Request~\n\n1. Fork this project to your own repo\n2. Clone the project in the past, that is, the project in your warehouse, to your local\n3. Modify the code\n4. Push to your own library after commit\n5. Initiate a PR (pull request) request and submit it to the `provide` branch\n6. Waiting to merge\n\n## :closed_book:License\n\nDistributed under MIT License, please see license file within the code for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder2z%2Fyangon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoder2z%2Fyangon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder2z%2Fyangon/lists"}