基於 React.js + Redux + Bootstrap 的 Ruby China 樣本

來源:互聯網
上載者:User

標籤:

最近在學習前端的各大流行架構, 主要學習了 Vue.js 和 React.js, 前段時間用 Vue.js + uikit 實現了 V2EX 的複製版本, 最近又用 React.js + redux + bootstrap 實現了 RubyChina 的複製版本, 兩個項目都支援響應式布局. 不得不說這是學習新知識的一個有效途徑. 這兩個項目都比較合適學習 Vue.js 和 React.js 的朋友參考.

Vue.js + V2EX 項目

代碼地址: https://github.com/liuzhenangel/v2ex_frontend

Demo: http://v2ex.liuzhen.me

關於這個項目的一些介紹和學習資料可以訪問 https://github.com/liuzhenangel/v2ex_frontend 查看 .

 

 

 

這篇文章主要介紹 React.js 的相關知識.

React.js + RubyChina 項目

代碼地址: https://github.com/liuzhenangel/react-ruby-china

Demo: http://ruby-china.liuzhen.me

 

 

 

項目介紹

react-ruby-china 項目是一個利用 react, react-dom, react-redux, react-router, redux, es6, redux-thunk 實現的 RubyChina 社區複製項目.

這是一個前後端分離項目, 前端主要是 react, redux, es6, css 架構使用了 bootstrap. 後端利用 ruby-china 開放的 api. 支援響應式布局. 部分功能仍在持續完善中.

開發環境搭建

可以根據下方列出的官方文檔裡面有詳細說明, 這裡介紹一下 create-react-app 這個命令列腳手架工具. npm install create-react-app -g 之後執行 create-react-app my-app, 然後 npm start 就能運行了. 關於 create-react-app 詳情可以點擊 https://github.com/facebookincubator/create-react-app 查看.

核心技術架構
  • react
  • react-dom
  • react-router
  • redux
  • redux-thunk
  • react-md-editor
  • isomorphic-fetch
  • react-paginate
  • react-redux
  • marked
  • es6-promise
  • classnames
學習參考資料

在學習 React 過程中, React.js 文檔做的沒有 Vue.js 的好, 文檔中的例子各種不同文法. 對著照做不一定對, 也不方便查詢, 踩過很多坑後給大家做個分享.

React 中文文檔(這個文檔很好查詢, 但是很多內容寫的太簡單了沒講清楚, 而且內容不全): https://hulufei.gitbooks.io/react-tutorial/content/index.html

React 官方英文文檔: https://facebook.github.io/react/docs/getting-started.html

React 中文文檔(這個文檔比較差): http://reactjs.cn/react/docs/getting-started-zh-CN.html

極客學院提供的 React 中文文檔: http://wiki.jikexueyuan.com/project/react/

另一個 Reac 中文文檔(這個比較全面, 但是不便於搜尋): http://www.phperz.com/article/15/0712/140537.html

React Router 中文文檔: https://react-guide.github.io/react-router-cn/

RubyChina API: https://ruby-china.org/api

ReacChina 社區(這裡面有很多資源): http://react-china.org/

ES6 文檔: http://es6.ruanyifeng.com/#docs/intro

Redux 介紹: http://www.alloyteam.com/2015/09/react-redux/

基於 React.js + Redux + Bootstrap 的 Ruby China 樣本

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.