{"id":18917136,"url":"https://github.com/lincenying/mmf-blog-vite-react","last_synced_at":"2025-10-30T23:36:46.033Z","repository":{"id":137757073,"uuid":"358889691","full_name":"lincenying/mmf-blog-vite-react","owner":"lincenying","description":"mmf-blog react v3版 (react,react-router,redux,redux-toolkit,vitejs)","archived":false,"fork":false,"pushed_at":"2024-08-21T08:32:07.000Z","size":2296,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-08-21T09:54:38.180Z","etag":null,"topics":["react","react-router","redux","redux-toolkit","spa","vitejs"],"latest_commit_sha":null,"homepage":"","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/lincenying.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-17T13:44:05.000Z","updated_at":"2024-08-21T08:32:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3a68a17-69b7-4c3a-9ea3-e16f154a39db","html_url":"https://github.com/lincenying/mmf-blog-vite-react","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/lincenying%2Fmmf-blog-vite-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lincenying%2Fmmf-blog-vite-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lincenying%2Fmmf-blog-vite-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lincenying%2Fmmf-blog-vite-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lincenying","download_url":"https://codeload.github.com/lincenying/mmf-blog-vite-react/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223666115,"owners_count":17182445,"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":["react","react-router","redux","redux-toolkit","spa","vitejs"],"created_at":"2024-11-08T10:24:10.416Z","updated_at":"2025-10-30T23:36:45.966Z","avatar_url":"https://github.com/lincenying.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mmf-blog react v3版\n\ndemo: [http://react.mmxiaowu.com](http://react.mmxiaowu.com)\n\n#### 说明\n\n本站采用 React, React-Router v4, Redux 搭建, 分成前台和后台\n\n主要功能包括: 管理员, 用户, 分类, 文章, 评论, 文章点赞\n\n主要技术栈: react, react-router, redux, redux-toolkit, vitejs, eslint\n\n---\n\n#### 其他版本\n\nreact spa class版本: [https://github.com/lincenying/mmf-blog-react-v2](https://github.com/lincenying/mmf-blog-react-v2)\n\nreact spa hooks版本: [https://github.com/lincenying/mmf-blog-vite-react](https://github.com/lincenying/mmf-blog-vite-react)\n\nvue2 spa版本: [https://github.com/lincenying/mmf-blog-vue2](https://github.com/lincenying/mmf-blog-vue2)\n\nvue2 ssr版本: [https://github.com/lincenying/mmf-blog-vue2-ssr](https://github.com/lincenying/mmf-blog-vue2-ssr)\n\nvue3 spa版本: [https://github.com/lincenying/mmf-blog-vite-vue3](https://github.com/lincenying/mmf-blog-vite-vue3)\n\nvue3 pwa ssr版本: [https://github.com/lincenying/mmf-blog-vite-vue3-ssr](https://github.com/lincenying/mmf-blog-vite-vue3-ssr)\n\n---\n\n先安装 api server:\n\nkoa2版: https://github.com/lincenying/mmf-blog-api-koa2-v2\n\nexpress版: https://github.com/lincenying/mmf-blog-api-v2\n\n```bash\n# 1. 安装依赖 (不要用 cnpm 安装)\n$ npm install\n# or\n$ yarn\n\n# 2.1 产品模式\n$ npm run build\n# or\n$ yarn build\n\n# 2.2 开发模式\n$ npm run serve\n# or\n$ yarn serve\n\n```\n\n## docker-compose\n\n使用`docker-compose`, 将会从`docker hub`拉取`api-server`镜像, 并且启动容器\n\n```yaml\napi:\n  container_name: api-server\n  image: lincenying/api-server:1.0.1\n```\n\n修改`docker-compose.yml`中的`mongo.volumes`配置, 将宿主机数据库路径映射到容器中\n\n```yaml\nvolumes:\n  - /Users/lincenying/web/mongodb/data:/data/db\n```\n\n```bash\n# 生成镜像及启动容器\n# 后端服务器一起启动\ndocker-compose build\ndocker-compose up -d\n\n# 如果后端服务器在宿主机或者其他容器上, 按照如下命令启动, 并且修改`nginx/conf.d/vue3-api.conf`里的`proxy_pass`配置\ndocker-compose -f docker-compose.api.yml build\ndocker-compose -f docker-compose.api.yml up -d\n```\n\n首页\nhttp://localhost:7778\n\n管理员登录\nhttp://localhost:7778/backend\n\n# LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flincenying%2Fmmf-blog-vite-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flincenying%2Fmmf-blog-vite-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flincenying%2Fmmf-blog-vite-react/lists"}