PttWeb:修订间差异

来自Gea-Suan Lin's Wiki
跳到导航 跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
第15行: 第15行:
== 編譯 ==
== 編譯 ==


 這邊是參考<code>.travis-ci.yml</code><ref> 的方式{{Cite web |url=https://github.com/ptt/pttweb/blob/master/.travis.yml | title=pttweb/.travis.yml at master · ptt/pttweb |accessdate=2020-04-09}}</ref>:
 這邊是參考<code>.travis-ci.yml</code> 的方式編譯<ref>{{Cite web |url=https://github.com/ptt/pttweb/blob/master/.travis.yml | title=pttweb/.travis.yml at master · ptt/pttweb |accessdate=2020-04-09}}</ref>:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
export GOPATH="$HOME/go"; go get google.golang.org/grpc; go get -u github.com/golang/protobuf/{proto,protoc-gen-go}; make -C $GOPATH/src/github.com/ptt/pttweb/proto; go get -u -t -f github.com/ptt/pttweb/...
export GOPATH="$HOME/go"; go get -u github.com/ptt/pttweb; go get google.golang.org/grpc; go get -u github.com/golang/protobuf/{proto,protoc-gen-go}; make -C $GOPATH/src/github.com/ptt/pttweb/proto; go get -u -t -f github.com/ptt/pttweb/...
</syntaxhighlight>
</syntaxhighlight>



2020年4月8日 (三) 16:09的版本

PttWebPttBBS的网页界面。

概要

PttWeb是一个Golang写的界面,透过gRPCPttBBS的伺服器沟通。

相依性套件

先安装需要的套件:

sudo apt install -y build-essential golang golang-goprotobuf-dev; sudo apt clean

编译

这边是参考.travis-ci.yml的方式编译[1]

export GOPATH="$HOME/go"; go get -u github.com/ptt/pttweb; go get google.golang.org/grpc; go get -u github.com/golang/protobuf/{proto,protoc-gen-go}; make -C $GOPATH/src/github.com/ptt/pttweb/proto; go get -u -t -f github.com/ptt/pttweb/...

相关连结

外部连结