Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kolable-like-test

一頁式網站:輸入 appId,查詢該 app 的會員總數。

使用方式

  1. 建立環境變數
cp .env.example .env
  1. .env 填入資料庫連線
  • POSTGRES_URL:Lodestar DB
  • JWT_SECRET:任意字串即可(此頁面流程不會驗證 token)
  1. 安裝與啟動
npm install
npm run dev
  1. 開啟 http://localhost:3000

技術說明

  • 後端使用 express
  • 使用 Git repo 套件 lodestar-sdkgit@github.com:urfit-tech/lodestar-sdk.git
  • API:GET /api/member-count?appId=<id>
  • 查詢流程:
    • sdk.appService.getApp(appId) 驗證 app 是否存在
    • sdk.dataSource.getRepository(Member).count({ where: { appId } }) 取得會員數

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages