機器大使 Ambassador 是公民科技創新獎助金 - 2017 秋季的提案之一,目的是作為 g0v 大使手腳的延伸,協助大使與參與者更有效地追蹤各專案的動態。取名機器大使正是希望像饅頭一樣,機器饅頭比手工饅頭更有效率。
雖然計畫的目的是一個給 g0v 大使追蹤專案的 dashboard ,但在它成形前,重用其他 project hub 相關成果所需的程式也會放在此專案中。
先以 npm install
或 yarn
安裝套件。
The GitHub OAuth client ID and secret. The application backend(/server/index.js
) uses it to handle OAuth logins.
GH_BASIC_CLIENT_ID=2222f1ffb522f6bb4480 GH_BASIC_CLIENT_SECRET=9eee00006da733b22cb1234339301cc67d943eff
The administrator email address. The application backend uses it to set the GitHub access token. It defaults to [email protected]
.
The PostgreSQL DB URL.
DATABASE_URL=pgsql://localhost/ambassador
The location of Logbot. The application backend uses it to fetch information from Logbot.
LOGBOT_URL=https://logbot.g0v.tw
The protocol of the application backend. It defaults to nothing.
HTTPS=true
The hostname of the application backend. It defaults to localhost
.
API_HOST=localhost
The port number of the application backend. It defaults to 80
.
API_PORT=8081
The location of Logbot. The application frontend uses it to embed the page.
LOGBOT_URL=https://logbot.g0v.tw
The procotol of the application frontend. It defaults to nothing.
HTTPS=true
The hostname of the web frontend. It defaults to localhost
.
HOST=localhost
The port number of the web frontend. It defaults to 80
.
PORT=8080
The hostname of the application backend. It defaults to localhost
. The web frontend uses it to communicate with the backend service.
API_HOST=localhost
The port number of the application backend. It defaults to 80
. The web frontend uses it to communicate with the backend service.
API_PORT=8081
The date that logs begin. It defaults to 1970-01-01
.
DDAY=2013-07-26
npm run test
flow-typed install
npm run flow
- 讀取圖示
g0v.jump.l.gif
取自 g0v/style-guide ,以 MIT 授權釋出。 - g0v logo
g0v-2line-transparent-darkbackground-s.png
改作自 g0v/style-guide ,以 MIT 授權釋出。