{"id":20914927,"url":"https://github.com/showx/frontshow","last_synced_at":"2026-04-24T11:03:14.904Z","repository":{"id":75366267,"uuid":"545019060","full_name":"showx/frontshow","owner":"showx","description":"前端页面构建系统","archived":false,"fork":false,"pushed_at":"2022-11-09T11:20:59.000Z","size":12885,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T16:15:06.432Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/showx.png","metadata":{"files":{"readme":"README.md","changelog":"history/.gitkeep","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":"2022-10-03T16:35:31.000Z","updated_at":"2022-10-31T14:40:28.000Z","dependencies_parsed_at":"2023-06-06T07:00:19.910Z","dependency_job_id":null,"html_url":"https://github.com/showx/frontshow","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/showx%2Ffrontshow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showx%2Ffrontshow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showx%2Ffrontshow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showx%2Ffrontshow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/showx","download_url":"https://codeload.github.com/showx/frontshow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243307496,"owners_count":20270263,"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":[],"created_at":"2024-11-18T16:12:11.126Z","updated_at":"2025-12-28T11:42:48.160Z","avatar_url":"https://github.com/showx.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# frontshow\n前端页面构建系统，为了简化发布流程，前端只需要关心业务代码，每次发布，只需要构建并同步相应的服务器。\n\n![avatar](/node/demo.png)\n\n# 所需环境\n1. php 8.0.3 (需要swoole扩展)\n2. node.js (npm)\n3. git\n\n# 项目配置\nconfig.php是web页面的登录账号\nproject.php是程序的项目\n使用docker需把/frontshow/conf映射到本地，达到后面动态加载配置\n```PHP\nreturn [\n    // 项目1\n    1000 =\u003e [\n        'projectname' =\u003e '测试',\n        'description' =\u003e '测试',\n        'name' =\u003e 'frontweb',\n        'git' =\u003e 'git@gitee.com:test/test.git',\n        'url' =\u003e 'http://test.cn',\n        'sourcedir' =\u003e '/dist/',\n        'targetdir' =\u003e '/test/web',\n    ],\n    \n];\n```\n\n#### 安装使用\n配置好config.php(主要腾讯云cos的配置)和project.php(项目git地址与目标文件夹)，使用docker构建一下\n```\ndocker build -t frontshow:v1 .\n# docker run -it -d -p 9501:9501 --name frontshow frontshow:v1\ndocker run -it -d -p 9501:9501 -v //d/code/conf:/frontshow/conf --name frontshow frontshow:v1\n```\n浏览器输入localhost:9501即可构建\n\n#### 用到的相关命令\n## rsync\nrsync -avzP -e \"ssh -i ~/sshkey.pem\" ubuntu@xx.xxx.xx.xxx:Projects/sample.csv ~/sample.csv\n\n## cos\nhttps://cloud.tencent.com/document/product/436/12266\n\n#### todolist\n1. 优化后台登录体验\n\n#### 注意事项\n1. 上传到cos，前端使用vue只能使用hash模式。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshowx%2Ffrontshow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshowx%2Ffrontshow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshowx%2Ffrontshow/lists"}