Giter VIP home page Giter VIP logo

redux-blog's Introduction

這一個 React / Redux 做的部落格

可以查看文章,註冊後可以發佈文章。

demo

功能

  1. 登入頁面:輸入帳號密碼後可以登入
  2. 註冊頁面:可以開放使用者註冊
  3. About 頁面:簡單關於部落格的話
  4. 404 頁面:如果網址有誤會跑到 404 頁面
  5. 文章列表頁面:可以看到所有文章,一頁只會顯示 5 筆,需要支援分頁功能,可以換頁
  6. 單篇文章頁面:點進去文章以後可以看到文章完整內容
  7. 發表文章頁面:可以輸入標題跟內文發文
  8. 刪除文章:只有同一個使用者才可以刪除文章
  9. 編輯文章:只有同一個使用者才可以編輯文章,編輯完跳回單一文章頁面
  10. 單一使用者的所有文章頁面:查看某一個使用者的所有文章

使用技術

  • react
  • react-router-dom
  • redux
  • redux toolkit
  • redux thunk 串接 API
  • emotion/styled

部分截圖

  • 導覽列

  • 主題、登入、編輯功能

  • 分頁、刪除、登出功能

Source tree

📦src
 ┣ 📂app
 ┃ ┗ 📜store.js
 ┣ 📂components
 ┃ ┣ 📜Blog.js
 ┃ ┣ 📜Footer.js
 ┃ ┣ 📜index.js
 ┃ ┗ 📜Nav.js
 ┣ 📂features
 ┃ ┣ 📂post
 ┃ ┃ ┗ 📜postSlice.js
 ┃ ┗ 📂user
 ┃ ┃ ┗ 📜userSlice.js
 ┣ 📂images
 ┃ ┗ 📜day_night_icon.svg
 ┣ 📂pages
 ┃ ┣ 📜AboutPage.js
 ┃ ┣ 📜ErrorPage.js
 ┃ ┣ 📜HomePage.js
 ┃ ┣ 📜LoadingPage.js
 ┃ ┣ 📜OnePostPage.js
 ┃ ┣ 📜PostPage.js
 ┃ ┣ 📜UserPage.js
 ┃ ┗ 📜UserPostsPage.js
 ┣ 📂styles
 ┃ ┣ 📜animations.js
 ┃ ┣ 📜GlobalStyle.js
 ┃ ┣ 📜PostStyled.js
 ┃ ┗ 📜theme.js
 ┣ 📜index.js
 ┣ 📜localStorageAPI.js
 ┗ 📜webAPI.js
📜.env

redux-blog's People

Contributors

benben6515 avatar

Stargazers

Roman avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.