reactjs-public-blog-firebase

ReactJS demo with blog CRUD

以Create、Read、Update、Delete的流程搭配Firebas並使用Reactjs來實作,記錄過程中的目錄結構、非同步處理、相關流程、步驟,以供基礎專案參考

Live Demo

Requirement

Quick Start

Stack

  1. React
  2. Redux
  3. Redux Saga
  4. React Router
  5. Firebase - database to store data
  6. SASS、SCSS
  7. Bootstrap
  8. Fontawesome

Dependencies

File Structure

app - reactjs source code
 |-actions
 |-api - firebase services
 |-components - ui view
 	|-App
 	|-Body
 	|-Detail
 	|-Editor
 	|-ErrorContent
 	|-Footer
 	|-Header
 	|-Posts
 	|-SearchBar
 	|-Spinner
 |-containers - connect with redux\'s store and dispatch actions
 	|-pages
 		|-CreateContainer.js
 		|-DetailContainer.js
 		|-EditContainer.js
 		|-HomeContainer.js
 		|-index.js
 |-reducers
 |-sagas - middleware to process async actions
 |-store
 |-stylesheets - scss files
 |-utils
 |-client.js
 |-routers.js
public - running application folder

Components

App

Data Flow

Dataflow

Design Step

  1. Components -> Actions -> Sagas -> Reducers -> Containers
  2. configureStore: Connect with reducers and sagas

Todo

  1. add some test
  2. add branch for authentication