Share
Embed
Transcript
24 slides
-
關於我 ▪ Shan-Jung Fu (Samina) ▫ 交通大學資訊工程研究所學生 ▫ CDNJS 專案的成員之一
▫ 工研院 Intern ▫ 曾經任職於交大資訊中心網路系統工程師 ▫ GitHub: @sufuf3 ▫ Twitter: @sufuf3149 2 -
簡介 ▪ TGmeetup ▫ 一個蒐集各社群資料與活動資訊的小工具 ▫ 全名: Technical groups meetup
▫ 使用 python3 撰寫 ▫ GitHub repository: ▫ https://github.com/TGmeetup/TGmeetup 5 -
設計上的規劃考量與執行 ▪ 初步構思 ▫ 需處理權限問題、登入 ▫ 如何 Open source 出來?
Database Server Web server 14 -
設計上的規劃考量與執行 ▪ 再次設計 ▫ 用 Json 格式儲存資料 ▫ 如何克服 OAuth
的設定問題 ▫ 整體檔案結構與程式架構 15 -
Json 格式 16 { "name": "PyHUG", "title": "Python Hsinchu User
Group", "description": "Welcome to PyHUG! We are a group of Python programmers near the Hsinchu, Taiwan. ...", "countrycode": "tw", "city": "Hsinchu", "keywords": [ "python", "Computer programming", ], "registration": { "type": "meetup", "url": "https://www.meetup.com/pythonhug/" }, "repository": { "type": "git", "url": "https://github.com/pyhug" }, "chat": [ { "type": "IRC", "urls": [ "Freenode/#python.tw" ] } ], "social-media": [ { "type": "facebook", "urls": [ "https://www.facebook.com/groups/pythontw/" ] } ] } -
Json 格式 ▪ name: 該社群的縮寫,或是活動報名 URL 的社群名 ▪ title: 該字串為該社群真正的名字,中間可以有空白
▪ countrycode: 遵循 ISO 3166-1 alpha-2 的規範 ▪ city: 城市的欄位 ▪ keywords:與該技術社群相關的關鍵字 ▪ registration: ▫ type: 報名的平台名稱( Meetup 或 kktix) ▫ url: 為報名連結 ▪ description: 技術社群的描述 ▪ homepage: 社群的網站 ▪ contact: 社群公開的聯繫方式 ▪ contributors: 社群的維護者資訊 ▪ repository: Git repository ▪ chat: 社群討論的平台連結 ▪ social-media:該技術社群的社群媒體連結 17 -
檔案結構 ├── TGmeetup │ ├── libs │ │ ├── RegistrationAPI
│ │ │ ├── KKTIX.py │ │ │ ├── Meetup.py │ │ │ └── __init__.py │ │ └── __init__.py │ └── tgmeetup.py ├── community │ ├── sg │ └── tw │ ├── PyHUG │ └── package.json ├── conference │ └── tw │ ├── PyConTaiwan │ │ └── package.json 18 -
如何使用與貢獻 API.cfg 設定參考: https://hackmd.io/s/ByrxYmi4G $ git clone https://github.com/TGmeetup/TGmeetup.git $ cd
TGmeetup $ cp API.cfg.sample API.cfg $ sh install.sh 21 -
{ "name": "DigitalOceanHsinchu", "title": "DigitalOcean Hsinchu", "description": "We are a
new local technology meetup group located at Hsinchu city, organized by students in NCTU(National Chiao Tung University) and DigitalOcean! We are interested in various open source, Linux, cloud computing, DevOps, web development and network related techs and tools.", "countrycode": "tw", "city": "Hsinchu", "keywords": [ "open source", "cloud", "DevOps" ], "contributors": "DigitalOcean Hsinchu organizers", "registration": { "type": "meetup", "url": "https://www.meetup.com/DigitalOceanHsinchu/" 如何使用與貢獻 22 "chat": [ { "type": "slack", "urls": [ "https://digitaloceanhsinchuslack.herokuapp.com/", "https://digitaloceanhsinchu.slack.com" ] } ], "social-media": [ { "type": "facebook", "urls": [ "https://www.facebook.com/DigitalOceanHsinchu/", "https://www.facebook.com/groups/DigitalOceanHsin chu/" ] } ] } -
未來規劃 1. 選取想參加的活動加到 Google 行事曆 2. 加入新的 option 直接呈現有活動的社群 3.
使用 `tgmeetup add` ▫ 自行加入要關注的社群資訊 4. 寫更完整的 test 5. 加入 Facebook 與活動通的 API 24