這裡是使用 golang 來達成 PTT 的 中介應用層.
與 Ptt-official-app pttbbs 一起成為現代的 BBS 架構.
您可以用以下方式快速開始:
- 安裝 docker
./scripts/start-getting-started.shtelnet localhost 8888- 使用 SYSOP/123123 登入.
您可以到 https://doc.devptt.dev 試著使用 api.
如果您在 api 網頁裡遇到 CORS 的問題. 你可以在網頁裡 copy curl 指令測試.
我們使用以下 library 幫助 coding convention:
除了開 issues 以外, 您還可以做以下的事情來對於 code 做討論 / review / 提出問題.
git clone這個 repo.- 開一個 review-[topic] 的 branch.
- 對於想要討論的部分在 code 裡寫 comments.
- pull-request
- 對於 PR 進行討論.
- 當 PR 關掉時, comments 會留下關於這個 pr 討論的 link.
您可以使用 fork 來一起開發.
你可以做以下的事情來進行 unit-test:
./scripts/test.sh
您可以做以下的事情來進行 coverage-check:
./scripts/coverage.sh
You can run swagger with:
- 設定 python virtualenv.
cd apidoc; pip install . && pip uninstall apidoc -y && python setup.py develop; cd .../scripts/swagger.sh [host]- go to
http://localhost:5000
https://github.com/Ptt-official-app/pttbbs-backend/tree/main/schema