Skip to content

Ptt-official-app/pttbbs-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,151 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pttbbs-backend

Go GoDoc codecov

README Translation

概觀

這裡是使用 golang 來達成 PTT 的 中介應用層.

Ptt-official-app pttbbs 一起成為現代的 BBS 架構.

Demo Site

Getting Started

您可以用以下方式快速開始:

  1. 安裝 docker
  2. ./scripts/start-getting-started.sh
  3. telnet localhost 8888
  4. 使用 SYSOP/123123 登入.

API

您可以到 https://doc.devptt.dev 試著使用 api.

如果您在 api 網頁裡遇到 CORS 的問題. 你可以在網頁裡 copy curl 指令測試.

Coding Convention

我們使用以下 library 幫助 coding convention:

Discussing / Reviewing / Questioning the code

除了開 issues 以外, 您還可以做以下的事情來對於 code 做討論 / review / 提出問題.

  • git clone 這個 repo.
  • 開一個 review-[topic] 的 branch.
  • 對於想要討論的部分在 code 裡寫 comments.
  • pull-request
  • 對於 PR 進行討論.
  • 當 PR 關掉時, comments 會留下關於這個 pr 討論的 link.

Develop

您可以使用 fork 來一起開發.

Unit-Test

你可以做以下的事情來進行 unit-test:

  • ./scripts/test.sh

您可以做以下的事情來進行 coverage-check:

  • ./scripts/coverage.sh

Swagger

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

Schema definition

  • https://github.com/Ptt-official-app/pttbbs-backend/tree/main/schema

Repository Naming

  • 2024-06-26: 這個 repo 主要是以 pttbbs 的機制為主, 所以改成命名為 pttbbs-backend.
  • 2022-12-16: 這個 repo 之所以會被稱為 go-openbbsmiddleware, 是因為古早的 .NET ASP 的開發者希望 中介應用層 可以擴及其他版本的 bbs (Maple/中山之島). 這個 repo 就 follow 當時的 naming convention 命名為 go-openbbsmiddleware.

About

pttbbs 的 app/web backend

Resources

License

Stars

Watchers

Forks

Contributors