{"id":18802403,"url":"https://github.com/jd-opensource/fepubfree","last_synced_at":"2025-04-13T18:10:36.453Z","repository":{"id":62338822,"uuid":"558184001","full_name":"jd-opensource/FEPubfree","owner":"jd-opensource","description":"前端发布平台","archived":false,"fork":false,"pushed_at":"2022-10-27T09:42:52.000Z","size":169,"stargazers_count":149,"open_issues_count":2,"forks_count":29,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T08:58:18.039Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jd-opensource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-27T03:36:15.000Z","updated_at":"2024-12-25T10:22:28.000Z","dependencies_parsed_at":"2022-10-31T03:00:14.090Z","dependency_job_id":null,"html_url":"https://github.com/jd-opensource/FEPubfree","commit_stats":null,"previous_names":["jd-opensource/fepubfree"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2FFEPubfree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2FFEPubfree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2FFEPubfree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2FFEPubfree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jd-opensource","download_url":"https://codeload.github.com/jd-opensource/FEPubfree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248758418,"owners_count":21156957,"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-07T22:27:57.079Z","updated_at":"2025-04-13T18:10:36.406Z","avatar_url":"https://github.com/jd-opensource.png","language":"TypeScript","readme":"# Pubfree 前端发布平台\n\n## 描述\n### 主要技术栈\n- 前端 React + Antd\n- 后端 NodeJS + MySQL\n- 工具 pnpm、vite\n\u0026nbsp;\n## 目录\n- [Pubfree 前端发布平台](#pubfree-前端发布平台)\n  - [描述](#描述)\n    - [主要技术栈](#主要技术栈)\n  - [目录](#目录)\n  - [安装](#安装)\n    - [安装 pnpm](#安装-pnpm)\n    - [安装依赖](#安装依赖)\n    - [数据库建表](#数据库建表)\n    - [运行 server-api](#运行-server-api)\n    - [运行 server-client](#运行-server-client)\n    - [运行 client-web](#运行-client-web)\n  - [使用](#使用)\n    - [快速发布流程](#快速发布流程)\n      - [1. 创建项目](#1-创建项目)\n      - [2. 资源发布](#2-资源发布)\n      - [3. 资源生效](#3-资源生效)\n      - [4. 查看页面](#4-查看页面)\n  - [License](#license)\n\u0026nbsp;\n## 安装\n安装前请确保已安装 MySQL 和 NodeJS，为了正常使用 vite, 请确保 NodeJS 版本为 ^14.18.0 || \u003e=16.0.0。\n\u0026nbsp;\n### 安装 pnpm\n````bash\nnpm install -g pnpm\n````\n查看 pnpm 版本，确认 pnpm 已经安装成功\n````bash\npnpm -v\n````\n\u0026nbsp;\n### 安装依赖\n项目根目录下安装项目依赖\n````bash\npnpm install\n````\n\u0026nbsp;\n### 数据库建表\n将 open-source/packages/server-api/script/sql/init.sql 文件中的 sql 语句复制到 MySQL 中运行，建立服务所需的基本数据库表。\n\u0026nbsp;\n### 运行 server-api\n在 open-source/packages/server-api/resource 下新建 config.default.json，并配置数据库等信息\n````js\n{\n  \"orm\": {\n    \"host\": \"127.0.0.1\",\n    \"port\": 3306,\n    \"database\": \"pubfree_open\",\n    \"username\": \"root\",\n    \"password\": \"root\"\n  }\n}\n\n````\n本地运行\n````bash\ncd packages/server-api\npnpm dev\n````\n在本地 http://127.0.0.1:7001 下便可访问到 cms 页面用到的接口。\n\u0026nbsp;\n### 运行 server-client\n在 open-source/packages/server-client/resource 下新建 config.default.json，并配置数据库等信息\n````js\n{\n  \"mysql\": {\n    \"enable\": true,\n    \"options\": {\n      \"host\": \"127.0.0.1\",\n      \"port\": 3306,\n      \"database\": \"pubfree_open\",\n      \"username\": \"root\",\n      \"password\": \"root\"\n    }\n  },\n  \"schedule\": {\n    \"enable\": true\n  }\n}\n````\n本地运行\n````bash\ncd packages/server-client\npnpm dev\n````\n通过 http://127.0.0.1:3000 可访问到发布在平台上的页面。\n\u0026nbsp;\n### 运行 client-web\n本地运行\n````bash\ncd packages/client-web\npnpm dev\n````\n通过 http://localhost:5173 可访问发布平台的 cms 页面。\n\u0026nbsp;\n## 使用\n### 快速发布流程\n#### 1. 创建项目\n![image](https://img14.360buyimg.com/imagetools/jfs/t1/105149/20/34273/57679/635a36bbE218c80ef/f0e2aae07970886b.png)\n\u0026nbsp;\n#### 2. 资源发布\n使用 zip 上传（本地开发环境不支持）或者输入 html 资源地址发布\n![image](https://img11.360buyimg.com/imagetools/jfs/t1/163595/19/28519/58928/635a3728E590137d6/47cafdfe3dc8f304.png)\n![image](https://img11.360buyimg.com/imagetools/jfs/t1/165869/35/31958/58647/635a37adE079e68bb/ec97699dfc18b23c.png)\n\u0026nbsp;\n#### 3. 资源生效\n![image](https://img10.360buyimg.com/imagetools/jfs/t1/212448/21/22800/62291/635a3d73Ef52f159c/b9da61eb8847544e.png)\n\u0026nbsp;\n#### 4. 查看页面\n![image](https://img14.360buyimg.com/imagetools/jfs/t1/109768/38/33231/62656/635a3dd6E287d9b3c/482c3616706297ed.png)\n\u0026nbsp;\n## License\n[MIT © JD.com, Inc.](./LICENSE)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-opensource%2Ffepubfree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjd-opensource%2Ffepubfree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-opensource%2Ffepubfree/lists"}