[Devfest 2019 Taipei] FunWater => 整合自動化建構 + 無伺服器應用在 Action on Google
1.
2. FunWater => 整合自動化建構 +
無伺服器應用在 Action on Google
黃威豪 (WeiHao, Huang)
<demotascha@gmail.com>
3. About Me
● Senior software engineer at IFCHIC
● Interested in backend development, CI/CD
● Able to build an environment / application with
docker
● Enjoy working on Google Cloud Platform @demotascha
5. ❖Inspired by true story
❖Demo
❖How to implement & Architecture
■ Open Data Taipei
■ Cloud Functions
■ Algolia
■ Google Assistant
■ Dialogflow
■ Google Maps API
■ Cloud Schedule
■ Cloud Source Repository
■ Cloud Build
■ Hosting options
■ CI / CD
❖Summary
Outline
19. Goal
➢Reduce plastic bottles (for human)
➢Easy to get drinking water (for User)
➢Easy to deploy to other cities(for developer)
20. ➢Based on “Google Assistant” and “Line”
➢Use “Official Open Data” to get drinking fountain info (Outdoor)
➢Use “Google Map”
Solution
21. * A million plastic bottles are bought around the world every minute.
* It takes three times the water to make the bottle as it does to fill it.
Usage rate 0.00001 0.00005 0.0001
Saved bottles/minute 10 50 100
Saved bottles/hour 600 3,000 6,000
Saved bottles/day 14,400 72,000 144,000
Saved bottles/year 525,600 26,280,000 525,600,000
Saved money/NT $20 10 M 525 M 10.5 B
Saved water/gallon(US) 245980 12 M 245 M
Expectation
29. Cloud Function
1.No server management
2.Scales automatically
3.Runs code in response to events
4.Pay only while your code runs
5.Connects and extends cloud services
36. “Our mission is to give development teams the building blocks to create a fast,
relevant search experience.”
Features:
❖Fast, Sort, Filter, Group, GeoLocation, Synonyms
Algolia
64. Tips
❖ Resources: Google, Official Documents, Google Codelabs, Qwiklabs, Coursera
❖ Keywords: options, maps, flow (en / zh-TW)
❖ Scenario
❖ Free quota & limits
❖ Best practices
65. Pros and Cons
❖ Does not support Comments and Ratings
❖ Does not support Feedback/Report.
❖ Cost
➢ Algolia - Free for non-commercial
use
➢ Google Map API - daily free quota
➢ Cloud Function - Free quota
❖ Focus on getting drinking fountain
resource.
❖ Focus on building great applications.
❖ Improve development efficiency and
productivity
66. The Future of Work
➢Get More “Official Drinking fountain Data” (Outdoor/Indoor)
➢Use “Cloud AutoML Vision” to add new drinking machine (Indoor)
➢Implement Rating / Comment (Outdoor and Indoor)
➢Join us