All Projects → superman66 → react-douban

superman66 / react-douban

Licence: other
豆瓣电影-react版本

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to react-douban

Socialgram
Clone of Facebook with limited features
Stars: ✭ 15 (-66.67%)
Mutual labels:  react-router, react-redux
auth-with-saga-example
code for https://medium.com/@stepankuzmin/authentication-with-react-router-redux-5-x-and-redux-saga-55da66b54be7
Stars: ✭ 14 (-68.89%)
Mutual labels:  react-router, react-redux
PERN-Advanced-Starter
Advanced PERN stack starter kit (PostgresSQL, Express, React, & Node), complete with ESLint, Webpack 4, Redux, React-Router, and Material-UI kit.
Stars: ✭ 51 (+13.33%)
Mutual labels:  react-router, react-redux
react-antd
基于react + redux + immutable + less + ES6/7 + webpack2.0 + fetch + react-router + antd实现的SPA后台管理系统模板
Stars: ✭ 320 (+611.11%)
Mutual labels:  react-router, react-redux
React-Native-Showcase
Best List of Open Source / Examples / Free / Case Study & Featured Template React Native Apps
Stars: ✭ 39 (-13.33%)
Mutual labels:  react-router, react-redux
React-Playground
Learning reactjs from the ground up (router, redux, thunk, hooks, context, portals, and functional components)
Stars: ✭ 15 (-66.67%)
Mutual labels:  react-router, react-redux
laravel-react-boilerplate
Laravel React Boilerplate with Ant Design, Route-Level Code Splitting, Redux, Sanctum Auth
Stars: ✭ 49 (+8.89%)
Mutual labels:  react-router, react-redux
OpenTrivia
Multiplayer quiz game demo using React and Opentdb API
Stars: ✭ 47 (+4.44%)
Mutual labels:  react-router, react-redux
ReactCnodeJS
☀️React 初/中级项目,CnodeJS社区重构 (a junior project, rewrite cnodejs.org ) 🌟 DEMO:
Stars: ✭ 66 (+46.67%)
Mutual labels:  react-router, react-redux
react-mobile-starter
🌈 A starter project structure for React.js app using Dva.
Stars: ✭ 46 (+2.22%)
Mutual labels:  react-router, react-redux
react-cheat-sheet
📚 The perfect React Cheat Sheet for daily use with a lot of Javascript / JSX snippets !
Stars: ✭ 59 (+31.11%)
Mutual labels:  react-router, react-redux
react-ssr
从零搭建一个react-ssr框架 解决页面js事件 样式同构 服务器客户端路由 数据注水脱水等问题
Stars: ✭ 42 (-6.67%)
Mutual labels:  react-router, react-redux
rapid-react
A light weight interactive CLI Automation Tool 🛠️ for rapid scaffolding of tailored React apps with Create React App under the hood.
Stars: ✭ 73 (+62.22%)
Mutual labels:  react-router, react-redux
react-laravel
A simple crud based laravel app to learn how to use react with laravel.
Stars: ✭ 43 (-4.44%)
Mutual labels:  react-router, react-redux
kugou
multiple implementations for kugou music
Stars: ✭ 25 (-44.44%)
Mutual labels:  react-router, react-redux
Client
TRPG即时IM通讯软件客户端,基于React 与 React Native + Redux技术
Stars: ✭ 118 (+162.22%)
Mutual labels:  react-router, react-redux
Questions
Web app inspired by Quora, allowing users ask question and get answers
Stars: ✭ 15 (-66.67%)
Mutual labels:  react-router, react-redux
react-demo
一个实际项目(OA系统)中的部分功能。这个demo中引入了数据库,数据库使用了mongodb。安装mongodb才能运行完整的功能
Stars: ✭ 92 (+104.44%)
Mutual labels:  react-router, react-redux
react-guidebook
📚 React 知识图谱 关于概念、技巧、生态、前沿、源码核心
Stars: ✭ 22 (-51.11%)
Mutual labels:  react-router, react-redux
book-fullstack-react
Fullstack React: The Complete Guide to ReactJS and Friends by Anthony Accomazzo
Stars: ✭ 100 (+122.22%)
Mutual labels:  react-router, react-redux

Redux and Thunk in React 教程

React + Redux + React-Router 完整例子。

安装

在项目根目录下运行 npm install 安装依赖

运行

第一步:执行 npm start 命令

npm start

第二步:开启 node API 代理服务

// 在根目录下,进入node-proxy 文件夹
cd node-proxy
// 开启 node 代理 API 服务
node index.js 

浏览器将自动打开localhost:3000/#/,便可以访问应用。

演示

demo(请用 chrome 的手机模式预览)

移动端请扫描下方二维码

构建及发布

//单独构建
npm run build
// 如果需要发布到GitHub pages
// 设置 package.json 中的 "homepage": "http://superman.github.io/react-douban", 将其替换成你自己的 repository 地址即可
npm run deploy

项目分析

React 的深入学习每个人都有各自的方式,但是对于入门而言,却是相似的。先看文档,掌握基本概念后,再通过项目驱动学习,深入理解和掌握。 在开始这个项目之前,已经假设了你对于 React 和 redux 已经有简单的基础能力。关于 redux 部分,可以再看看下面这篇文章再回复一遍 redux 的基础、核心概念:

项目结构

该项目的结构如下:

.
├── README.md
├── build                       // 构建build生成的文件夹,用于发布
│   ├── asset-manifest.json
│   ├── favicon.ico
│   ├── index.html
│   └── static
│       ├── css
│       ├── js
│       └── media
├── node-proxy                  // node 转发 豆瓣api 服务,用于解决跨域问题
│   └── index.js
├── package.json
├── public                      // 公共文件夹
│   ├── favicon.ico
│   ├── index.html
│   └── qrcode.png
├── redux-summary.md
├── src                         // 业务代码文件夹
│   ├── App.css
│   ├── actions                 // actions 文件夹
│   │   ├── header.js
│   │   ├── movie.js
│   │   ├── movieList.js
│   │   └── search.js
│   ├── components              // component ui组件集合地
│   │   ├── About.js
│   │   ├── App.js
│   │   ├── GoBackBar.js
│   │   ├── Header.js
│   │   ├── Loading.js
│   │   ├── Search.js
│   │   ├── SideBar.js
│   │   └── movie
│   ├── constants               // 定义常量文件夹
│   │   ├── API.js
│   │   └── actionTypes.js
│   ├── containers              // 容器组件集合地
│   │   ├── header.js
│   │   ├── movie.js
│   │   ├── movieList.js
│   │   └── search.js
│   ├── index.css
│   ├── index.js
│   ├── loading-bars.svg
│   ├── logo.svg
│   ├── reducers                // reducer 集合地
│   │   ├── index.js
│   │   ├── movie.js                  //
│   │   ├── movieList.js
│   │   └── search.js
│   ├── routes                  // 路由文件夹
│   │   └── index.js
│   └── store                   // reduxt store 文件夹
│       └── configureStore.js
└── tree.md
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].