vTaiwan.tw 後端架構

編輯歷史

時間 作者 版本
2016-12-04 03:02 陳一傑 r126
顯示 diff
(46 行未修改)
2015-01-15 04:59 – 05:01 Audrey Tang r79 – r125
顯示 diff
(2 行未修改)
*2015/1/13 au first draft, to be reviewed by iii team; API index to be reviewed with vtw.link team
- vTaiwan.tw 由兩部份組成,也就是 GitBook 和 Discourse。
+ 前端呈現在 https://github.com/g0v/vtaiwan.tw/
+ 後端由兩部份組成,也就是 GitBook 和 Discourse。
GitBook 方面
(1 行未修改)
http://crowdfunding.vtaiwan.tw/ 的目錄就是該網址。
小字典是 http://crowdfunding.vtaiwan.tw/GLOSSARY.html
+ 字典內容由 google spreadsheet 取得
各頁的內容全部在 http://crowdfunding.vtaiwan.tw/content.json
(20 行未修改)
*]
- 其中 title_eng 對應到 GitBook domain,category_rum 對應到 Discourse domain. 對應邏輯如下:
+ 其中 title_eng 對應到 GitBook domain,category_num 對應到 Discourse domain。
+ 對應邏輯如下:
*title_eng = crowdfunding
(6 行未修改)
2015-01-13 04:36 – 04:42 Audrey Tang r1 – r78
顯示 diff
- Untitled
+ vTaiwan.tw 後端架構
+ 上層:vTaiwan.tw 行政院法規線上諮詢系統
+ *2015/1/13 au first draft, to be reviewed by iii team; API index to be reviewed with vtw.link team
- This pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!
+ vTaiwan.tw 由兩部份組成,也就是 GitBook 和 Discourse。
+
+ GitBook 方面
+
+ http://crowdfunding.vtaiwan.tw/ 的目錄就是該網址。
+ 小字典是 http://crowdfunding.vtaiwan.tw/GLOSSARY.html
+
+ 各頁的內容全部在 http://crowdfunding.vtaiwan.tw/content.json
+ 所有的 Markdown 在 https://github.com/g0v/crowdfunding-gitbook
+
+ 技術文件見 http://help.gitbook.io/book/format.html
+
+ Discourse 方面
+
+ 可以到討論區任一頁,如 https://talk.vtaiwan.tw/t/topic/21
+ 後面加 .json 就好了 \o/ https://talk.vtaiwan.tw/t/topic/21.json
+
+ Ruby API 及技術說明: https://meta.discourse.org/t/using-discourse-api/17587
+ Node.js API: https://github.com/dhyasama/discourse-api
+ Java API: https://github.com/wareninja/discourse-api-client
+
+ 主索引
+
+ 請用這個 JSON 結構試作:
+
+ *[
+ * { "title_cht" : "群眾募資", "title_eng" : "crowdfunding", "category_num" : 6},
+ * { "title_cht" : "閉鎖型公司", "title_eng" : "closelyheld", "category_num" : 5}
+ *]
+
+ 其中 title_eng 對應到 GitBook domain,category_rum 對應到 Discourse domain. 對應邏輯如下:
+
+ *title_eng = crowdfunding
+ *HTML: https://crowdfunding.vtaiwan.tw
+ *JSON: https://crowdfunding.vtaiwan.tw/content.json
+ *
+ *category_num = 6
+ *HTML: https://talk.vtaiwan.tw/6/5-category
+ *JSON: https://talk.vtaiwan.tw/6/5-category.json
2015-01-13 04:36 (unknown) r0
顯示 diff
+ Untitled
+ This pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!