64卦

Get Start

1. install

$ npm install

2. 取得64卦資料

本程式資料取自wiki,資料存放於 ./data

$ npm run patch

3. .env

  1. prefix=
  2. PORT=

4. 啟動

$ npm start

Other

以下兩個檔案是64卦的基本資料

  1. ./data/8base.json
  2. ./data/64base.json

Api

http{s}://{ip}:{port}/api/v1/{method}

  • methods
    • GET /64/code?c1={}&c2={}
    • c1為上卦, ex 010 艮
    • c2為下卦, ex 101 離

測試用 https://divination.kmn.tw/api/v1/64/code?c1=010&c2=101