Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 799 Bytes

readme.md

File metadata and controls

43 lines (26 loc) · 799 Bytes

說明

這是一個使用 Express 框架建立的單純 RESTful API數據庫,並且使用 Swagger 產出 API 文件。

啟動步驟:

  1. 複製資料庫:

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

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

    cd restfulAPI
  3. 安裝 npm 套件:

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

    npm install
  4. 執行伺服器:

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

    node server.js
  5. 開啟 API 文件:

    在瀏覽器中打開以下連結:

    http://localhost:5000/api-docs/

    這將會開啟 API 文件,讓你可以查看 API 的詳細資訊。