Skip to content

這是一個用於學習 Redux 狀態管理的範例項目,包含了常規處理、中間件、非同步機制、redux-toolkit工具集、除錯等。

Notifications You must be signed in to change notification settings

wwwchendev/redux

Repository files navigation

說明

這是一個用於學習 Redux 狀態管理的範例項目,其中包含了前端和後端的部分。後端部分使用了一個 restfulAPI 數據庫,用於處理後端的非同步 API 請求。

啟動步驟:

Server端

參考 restfulAPI數據庫readme.md 開啟後端資料庫

Client端

  1. 複製資料庫:

    在終端機中使用以下命令來複製資料庫:

    git clone https://github.com/wwwchendev/redux.git
  2. 進入複製的目錄:

    cd redux
  3. 安裝 npm 套件:

    執行以下命令以安裝所需的 npm 套件:

    npm install
  4. 執行伺服器:

    運行以下命令以啟動伺服器:

     npm run dev
    
     > [email protected] dev
     > vite
    
    
       VITE v5.0.12  ready in 274 ms
    
       ➜  Local:   http://localhost:5173/
       ➜  Network: use --host to expose
       ➜  press h + enter to show help

    在瀏覽器中打開以下連結: http://localhost:5173/

About

這是一個用於學習 Redux 狀態管理的範例項目,包含了常規處理、中間件、非同步機制、redux-toolkit工具集、除錯等。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published