2 1 Database DB Facebook has a database
靜宜大學資管系 楊子青 2 1. Database (DB) • Facebook has a database of every member’s account information, friends list, and posts. • Amazon has a database of just about everything you can buy. • Google has a database of information about every page in the World Wide Web.
靜宜大學資管系 楊子青 3 Database Course • In most programming environments, building an app that communicates with a database is an advanced programming technique: – you have to set up a server with database software like Oracle or My. SQL and then write code that interfaces with that database.
靜宜大學資管系 楊子青 4 useful DB components • provides components that reduce database communication to simple store and get operations. • You can create apps that store data : – directly on the Android device: Tiny. DB – and with some setup, you can create apps that share data with other devices and people by storing it in a centralized web database: Tiny. Web. DB 或 Firebase. DB • even when you close the app and reopen it, the data is still available.
靜宜大學資管系 楊子青 7 2. Tiny. DB (行動裝置資料庫) • The Tiny. DB. Store. Value block stores data to the device’s long-term memory. – A tag-value scheme is used for database storage. • You retrieve data from the database with the Tiny. DB. Get. Value block.
靜宜大學資管系 楊子青 11 3. Firebase (網路資料庫) • Many apps do share data: – think of Facebook, Twitter, and popular multiuser games. – For such data-sharing apps, the database must live on the Web, not the device. – Tiny. Web. DB is the web counterpart to Tiny. DB. • 必須自行設定web service – 建議使用Firebase • https: //tw. alphacamp. co/2016/07/22/firebase/ • 一個同時支援 Android、i. OS 及網頁的 app 雲端開發平台 • 協助 app 開發者在雲端快速建置後端服務,提供即時資料庫, 有效縮短 app開發時間,讓開發者更專注在前端的優化
靜宜大學資管系 楊子青 12 將Tiny. DB專案另存成Firebase,修改 Screen 1的App. Name屬性為Firebase • 加入Firebase. DB元件,連結至 https: //firebase. google. com/
- Slides: 21