{"id":17951840,"url":"https://github.com/superman66/react-douban","last_synced_at":"2025-03-25T00:31:36.343Z","repository":{"id":96365472,"uuid":"84023028","full_name":"superman66/react-douban","owner":"superman66","description":"豆瓣电影-react版本","archived":false,"fork":false,"pushed_at":"2017-10-22T13:30:02.000Z","size":2029,"stargazers_count":44,"open_issues_count":0,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-19T05:41:54.706Z","etag":null,"topics":["douban","react","react-redux","react-router","redux"],"latest_commit_sha":null,"homepage":"http://chenhuichao.com/react-douban/","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/superman66.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":"2017-03-06T02:53:07.000Z","updated_at":"2022-07-17T08:59:00.000Z","dependencies_parsed_at":"2023-04-19T06:34:54.237Z","dependency_job_id":null,"html_url":"https://github.com/superman66/react-douban","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/superman66%2Freact-douban","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superman66%2Freact-douban/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superman66%2Freact-douban/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superman66%2Freact-douban/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superman66","download_url":"https://codeload.github.com/superman66/react-douban/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245377920,"owners_count":20605374,"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":["douban","react","react-redux","react-router","redux"],"created_at":"2024-10-29T09:51:24.855Z","updated_at":"2025-03-25T00:31:36.320Z","avatar_url":"https://github.com/superman66.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redux and Thunk in React 教程\nReact + Redux + React-Router 完整例子。\n## 安装\n在项目根目录下运行 `npm install` 安装依赖\n\n## 运行\n**第一步：执行 `npm start` 命令**\n\n```bash\nnpm start\n```\n**第二步：开启 node API 代理服务**\n\n```bash\n// 在根目录下，进入node-proxy 文件夹\ncd node-proxy\n// 开启 node 代理 API 服务\nnode index.js \n```\n浏览器将自动打开`localhost:3000/#/`，便可以访问应用。\n\n## 演示\n[demo](http://chenhuichao.com/react-douban/)(请用 chrome 的手机模式预览)\n\n**移动端请扫描下方二维码**\n\n![](./public/qrcode.png)\n\n## 构建及发布\n```bash\n//单独构建\nnpm run build\n// 如果需要发布到GitHub pages\n// 设置 package.json 中的 \"homepage\": \"http://superman.github.io/react-douban\", 将其替换成你自己的 repository 地址即可\nnpm run deploy\n```\n\n## 项目分析\nReact 的深入学习每个人都有各自的方式，但是对于入门而言，却是相似的。先看文档，掌握基本概念后，再通过项目驱动学习，深入理解和掌握。\n在开始这个项目之前，已经假设了你对于 React 和 redux 已经有简单的基础能力。关于 redux 部分，可以再看看下面这篇文章再回复一遍 redux 的基础、核心概念：\n* [redux学习总结笔记](./redux-summary.md) \n\n### 项目结构\n该项目的结构如下：\n```\n.\n├── README.md\n├── build                       // 构建build生成的文件夹，用于发布\n│   ├── asset-manifest.json\n│   ├── favicon.ico\n│   ├── index.html\n│   └── static\n│       ├── css\n│       ├── js\n│       └── media\n├── node-proxy                  // node 转发 豆瓣api 服务，用于解决跨域问题\n│   └── index.js\n├── package.json\n├── public                      // 公共文件夹\n│   ├── favicon.ico\n│   ├── index.html\n│   └── qrcode.png\n├── redux-summary.md\n├── src                         // 业务代码文件夹\n│   ├── App.css\n│   ├── actions                 // actions 文件夹\n│   │   ├── header.js\n│   │   ├── movie.js\n│   │   ├── movieList.js\n│   │   └── search.js\n│   ├── components              // component ui组件集合地\n│   │   ├── About.js\n│   │   ├── App.js\n│   │   ├── GoBackBar.js\n│   │   ├── Header.js\n│   │   ├── Loading.js\n│   │   ├── Search.js\n│   │   ├── SideBar.js\n│   │   └── movie\n│   ├── constants               // 定义常量文件夹\n│   │   ├── API.js\n│   │   └── actionTypes.js\n│   ├── containers              // 容器组件集合地\n│   │   ├── header.js\n│   │   ├── movie.js\n│   │   ├── movieList.js\n│   │   └── search.js\n│   ├── index.css\n│   ├── index.js\n│   ├── loading-bars.svg\n│   ├── logo.svg\n│   ├── reducers                // reducer 集合地\n│   │   ├── index.js\n│   │   ├── movie.js                  //\n│   │   ├── movieList.js\n│   │   └── search.js\n│   ├── routes                  // 路由文件夹\n│   │   └── index.js\n│   └── store                   // reduxt store 文件夹\n│       └── configureStore.js\n└── tree.md\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperman66%2Freact-douban","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperman66%2Freact-douban","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperman66%2Freact-douban/lists"}