{"id":19961941,"url":"https://github.com/goadmingroup/example_with_vue","last_synced_at":"2025-11-26T23:04:14.316Z","repository":{"id":40288100,"uuid":"252405157","full_name":"GoAdminGroup/example_with_vue","owner":"GoAdminGroup","description":"GoAdmin + Vue example","archived":false,"fork":false,"pushed_at":"2024-05-23T02:29:22.000Z","size":7262,"stargazers_count":124,"open_issues_count":44,"forks_count":46,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-25T04:59:15.393Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/GoAdminGroup.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":"2020-04-02T09:00:38.000Z","updated_at":"2025-01-28T19:55:28.000Z","dependencies_parsed_at":"2024-11-13T06:00:52.419Z","dependency_job_id":null,"html_url":"https://github.com/GoAdminGroup/example_with_vue","commit_stats":null,"previous_names":["goadmingroup/example_with_vue","goadmingroup/goadmin-vue-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GoAdminGroup/example_with_vue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoAdminGroup%2Fexample_with_vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoAdminGroup%2Fexample_with_vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoAdminGroup%2Fexample_with_vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoAdminGroup%2Fexample_with_vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoAdminGroup","download_url":"https://codeload.github.com/GoAdminGroup/example_with_vue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoAdminGroup%2Fexample_with_vue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"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-26T02:00:06.075Z","response_time":193,"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-13T02:08:58.814Z","updated_at":"2025-11-26T23:04:14.288Z","avatar_url":"https://github.com/GoAdminGroup.png","language":"Vue","readme":"# GoAdmin+Vue Example\n\nA example show how to develop GoAdmin with vue.\n\n这是一个例子展示如何利用GoAdmin结合vue的前后端开发流程。\n\nbackend文件夹下是所有后端开发文件，frontend文件夹下是所有前端开发文件。\n\n**注：本例子依赖sqlite，如果你使用windows，请先下载安装gcc。**\n\n![](http://quick.go-admin.cn/docs/vue-goadmin-2.png)\n\n## 前端UI框架\n\n选取目前主流的三个UI vue Admin框架作为例子：\n\n- [adminlte](https://github.com/devjin0617/vue2-admin-lte)\n- [element ui](https://github.com/PanJiaChen/vue-element-admin)\n\n## 开发流程\n\n### 步骤一\n\n后端开发人员编译二进制执行文件给前端开发人员。前端开发人员将二进制可执行文件放置于前端文件夹下。\n\n当前仓库代码依赖最新master分支的GoAdmin。使用go mod方式，执行以下命令：\n\n```bash\ngit clone https://github.com/GoAdminGroup/goadmin-vue-example.git\ncd goadmin-vue-example/backend\n\n# build binary file\nGO111MODULE=on go build -o ./backend .\n# send the binary file to all frontend developers\ncp backend ./../frontend\n```\n\n### 步骤二\n\n前端在前端文件夹下执行：\n\n```bash\ncd frontend\n# install dependencies\nnpm install --registry=https://registry.npmmirror.com --prefix ./src/element\n# build vue project\nNODE_ENV=production npm --prefix ./src/element run build\n# use the backend binary file to serve instead of node\nNODE_ENV=production ./backend --debug=true --theme=sword --ui_theme=element \n```\n\n更多命令，请看 Makefile。\n\n打开：[http://localhost:9033/admin/login](http://localhost:9033/admin/login)\n\n账号：admin 密码：admin，登录后可以看到对应vue页面。\n\n程序会自动监听```./src/src```下文件变化，有变化则执行```npm --prefix ./src run build```命令进行编译。\n\n执行：```./backend --help``` 可以看到对应帮助选项信息。\n\n以上。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoadmingroup%2Fexample_with_vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoadmingroup%2Fexample_with_vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoadmingroup%2Fexample_with_vue/lists"}