這是一個可以拿來練習前端 CRUD 的後端專案,可在本地使用,也可自行部署到雲端服務。
origin 的限定可自行調整 src/main.ts 相關程式碼。
$ git clone https://github.com/JiaHongL/todomvc-backend.git
$ cd jwt-refresh-token-mock-backend
$ npm install
$ npm run start:dev
打開瀏覽器,輸入 http://localhost:3000/api/docs
,可以看到 Swagger API 文件。