{"id":13671505,"url":"https://github.com/luoye-fe/goh5","last_synced_at":"2025-04-27T18:31:23.903Z","repository":{"id":84342050,"uuid":"53313827","full_name":"luoye-fe/goh5","owner":"luoye-fe","description":"visual h5 edit","archived":false,"fork":false,"pushed_at":"2018-11-21T06:28:21.000Z","size":4002,"stargazers_count":687,"open_issues_count":1,"forks_count":237,"subscribers_count":51,"default_branch":"master","last_synced_at":"2024-11-11T09:43:46.809Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/luoye-fe.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}},"created_at":"2016-03-07T09:41:33.000Z","updated_at":"2024-07-29T02:05:42.000Z","dependencies_parsed_at":"2023-07-06T22:15:44.859Z","dependency_job_id":null,"html_url":"https://github.com/luoye-fe/goh5","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/luoye-fe%2Fgoh5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luoye-fe%2Fgoh5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luoye-fe%2Fgoh5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luoye-fe%2Fgoh5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luoye-fe","download_url":"https://codeload.github.com/luoye-fe/goh5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251187152,"owners_count":21549595,"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-08-02T09:01:11.344Z","updated_at":"2025-04-27T18:31:21.365Z","avatar_url":"https://github.com/luoye-fe.png","language":"JavaScript","readme":"GoH5\n================\n\n## 预览地址\n\n[GoH5](http://goh5.luoyefe.com)\n\nGoH5是一个可视化编辑手机H5页的工具，极大解放生产力也为创意无限的人们提供展示的机会。  \n市面上类似的工具很多，易企秀、初页、兔展等等，功能很强大，但是作为个人开源项目，GoH5的出现不仅是为了做这个可视化工具，更是对自己的一个锻炼，从后端到前端甚至UI，每一行代码累过来，也许粗糙，也许离生产还有段距离，但最大的收获是思路的拓展。\n\n## 长什么样？\n\u003cp align=\"center\"\u003e\u003ca href=\"./Documents/static/example1.png\" target=\"_blank\"\u003e\u003cimg width=\"100%\" src=\"./Documents/static/example1.png\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003ca href=\"./Documents/static/example2.png\" target=\"_blank\"\u003e\u003cimg width=\"100%\" src=\"./Documents/static/example2.png\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003ca href=\"./Documents/static/example3.png\" target=\"_blank\"\u003e\u003cimg width=\"100%\" src=\"./Documents/static/example3.png\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## 用了哪些技术？\n\n* #### 数据库：MongoDB\n\n* #### 后台：NodeJs、Express\n\n* #### 前台：\n\n\t* ###### 编辑页：Vue、Vuex、Vue-Router、jQuery\n\n\t* ###### 展示页：Swiper\n\n* #### 构建：Gulp、Webpack\n\n## 怎么启动项目？\n\n* #### 克隆本项目源代码\n\n\t```\n\tgit clone https://github.com/luoye-fe/goh5.git\n\t```\n* #### 安装本项目依赖包\n\n\t```\n\tnpm install\n\t```\n\n* #### 启动本地MongoDB服务\n\n\t\u003e 本项目数据库用的是MongoDB，所以需要先在本地启动MongoDB服务，并且新建一个名为 `goh5` 的数据库，详情见 [MongoDB的安装和使用](./Documents/mongodb.md)\n\n\t```\n\t// 本机\n\tmongod --dbpath ~/data/db\n\t```\n\n* #### 拷贝数据库配置\n\n\t```bash\n\tcp ./RESTful_API/db/config.js.sample ./RESTful_API/db/config.js\n\t```\n\n* #### 启动服务\n\n\t```\n\tnode app.js --env=dev // 开发模式\n\t```\n\tor\n\t```\n\tpm2 start server.json // 生产\n\t```\n\n* #### 前端代码实时编译\n\n\t进入到 `Back_Stage` 执行 `gulp watch` 实时编译编辑后台的代码。  \n\n\t进入到 `Front_Stage` 执行 `gulp watch` 实时编译预览页的代码。  \n\n* #### 查看效果\n\n\t浏览器打开 `localhost:3030` 就可以看到效果啦\n\n## 技术细节？\n\n* #### Vue\n\t\u003e 感谢尤大带来生产力的解放。。\n\n\t本项目前端部分的主要实现就是依靠Vue，整个应用的状态都依赖一个H5作品的原始的数据，作为数据驱动的框架，Vue可以完美的应用在本项目中。  \n\n\t在项目初期，一直用数据的双向绑定实现应用状态的更新，但是组件多了，数据交换多了之后数据管理起来极其复杂，此时引入了Vuex，类似Redux的数据流管理插件，所有的数据修改操作集中到store中，保证了整个应用的稳定性。  \n\n\t路由部分，使用的Vue的Vue-Router，整个项目大多是单页，路由部分并不复杂。\n\n* #### MongoDB\n\n\t为什么用MongoDB呢？因为这样的话前后端的数据模型保持一致，请求接口，数据不用特殊处理，前端就可以直接用，json型的数据极其方便。\n\n* #### NodeJs\n\n\t没什么好说的，就是好。\n\n* #### 数据模型：[数据模型](./Documents/dataModel.md)\n\n* #### 构建\n\n\t构建用的是 `gulp+webpack` ，开发模式时运行 `gulp watch` 实时监控代码，实时打包和更新。\n\t发布新版本时，修改前台或后台文件夹下的 `config.json` 中的 `version` ，然后运行 `gulp --env=pro` 进行压缩打包并更新静态文件时间戳。\n\n## 未来？\n\n* #### 基础功能：\n\n\t视频，音乐，事件，键盘操作，更丰富的自定义内容，还有很多基础功能没完成。\n\n* #### 单页APP：\n\n\t一个完整的单页应用，如果有精力，想用ReactNative移植到ipad上，加油吧。\n\n## 联系我？  \n\n有任何问题或者想交流的开issue或者联系邮箱luoyefe@gmail.com。\n\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluoye-fe%2Fgoh5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluoye-fe%2Fgoh5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluoye-fe%2Fgoh5/lists"}