{"id":21095142,"url":"https://github.com/dan-and-dna/vue-example-client-server","last_synced_at":"2025-03-14T07:11:45.810Z","repository":{"id":109621192,"uuid":"152406998","full_name":"DAN-AND-DNA/vue-example-client-server","owner":"DAN-AND-DNA","description":"vue example  client \u0026\u0026 golang server  \u0026\u0026 example for 《Vue.js 实战》","archived":false,"fork":false,"pushed_at":"2018-10-10T11:05:42.000Z","size":387,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T01:43:24.304Z","etag":null,"topics":["example","server","vue"],"latest_commit_sha":null,"homepage":"","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/DAN-AND-DNA.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":"2018-10-10T10:39:20.000Z","updated_at":"2018-10-10T12:54:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"d0037a3b-81cd-496a-9f72-f24b35ab324f","html_url":"https://github.com/DAN-AND-DNA/vue-example-client-server","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/DAN-AND-DNA%2Fvue-example-client-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAN-AND-DNA%2Fvue-example-client-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAN-AND-DNA%2Fvue-example-client-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAN-AND-DNA%2Fvue-example-client-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DAN-AND-DNA","download_url":"https://codeload.github.com/DAN-AND-DNA/vue-example-client-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243538135,"owners_count":20307104,"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":["example","server","vue"],"created_at":"2024-11-19T22:23:31.784Z","updated_at":"2025-03-14T07:11:45.785Z","avatar_url":"https://github.com/DAN-AND-DNA.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-example-client-server\n\nvue简单前后端例子,介绍vue-router和vue以及一些简单的打包\n\n依赖(具体请看文档): \n\n      安装node.js v8.12.0 及以上\n      安装go 1.10.1 及以上\n      cd vue-example;npm install (部署client开发环境依赖)\n      export GOPATH=$HOME/xxxx/vue-example-client-server\n      cd vue-example-client-server;go get -v github.com/gin-gonic/gin\n\n运行client开发服务器:\n\n      1. 修改package.json中的ip到你自己的ip和端口\n      2. npm run dev\n      3. 浏览器打开对应http://ip:port/\n      \n开发结束，希望打包client到生产环境，请参考example_server目录:\n\n      1. npm run build\n\n运行生产环境完整例子(服务器是利用golang完成的):\n\n      1. 关闭防火墙或者设置规则\n      2. cd example_server;go run learn.go\n      3. 浏览器打开对应http://ip:port/list\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-and-dna%2Fvue-example-client-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdan-and-dna%2Fvue-example-client-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-and-dna%2Fvue-example-client-server/lists"}