Working with Databases (II) 靜宜大學資管系 楊子青

Slides:



Advertisements
Similar presentations
簡單 GIF 製作 (1)Gifmake (2)PICASION.COM By Shark. Gifmake introduction(1) 1.You can create a picture. Just specify width and height in pixels, then you'll.
Advertisements

Android App簡介及 App Inventor 2體驗 靜宜大學資管系 楊子青
云计算辅助教学风云录 黎加厚 上海师范大学教育技术系 2010年8月9日.
Are you ready to be an e-teacher
趣味小故事:马和驴子 在唐太宗贞观年间,有一匹马和一头驴子,它们 是好朋友。贞观3年,这匹马被玄奘大师选中,出 发前往印度取经。17年后,这匹马驮着经书回到长 安,重到磨坊会见驴子朋友。老马谈起这次旅途的 经历,浩瀚无边的沙漠,高耸云霄的山岭,凌云的 冰雪,壮阔的波澜……神话般的一切,让驴子听了 大为惊异、好生羡慕!驴子惊叹到:“你有多么丰.
Android App 系統開發教學 Luna 陳雯琳 2014/12/18
CJLR PDM&SRM 单点登录指南 场景一:在CJLR公司网络中(CJLR办公室/由VPN拨入),使用CJLR公司电脑登录:
Lotus Domino R7 Designer
第四章 網頁表單與資料傳遞.
MIT App Inventor簡介及 「Hello World」程式初體驗 靜宜大學資管系 楊子青
Working with Databases (II) 靜宜大學資管系 楊子青
HelloPurr 靜宜大學服務學習發展中心、資管系 楊子青
Basis基本操作、使用者 管理與權限設定
OXFORD REFERENCE ONLINE
Creating Animated Apps (I) 靜宜大學資管系 楊子青
移动系统的安全: 攻击和防御 杜文亮 教授 Dept. of Elec. Eng. & Comp. Sci.
Working with Databases (II) 靜宜大學資管系 楊子青
2016 IDEAS毕业答辩模版 A designer can use default text to simulate what text would look like. 汇报人/论文宝.
App Inventor 2體驗 靜宜大學資管系 楊子青
Decision Support System (靜宜資管楊子青)
Native Development Kit
教務行政資訊系統 簡介 資訊科技中心 資訊系統組 徐振琦
iSlide® PowerPoint standard template.
SAP 架構及基本操作 SAP前端軟體安裝與登入 Logical View of the SAP System SAP登入 IDES
常见问题解答 II. App上重置并清空数据库之后,手机app找不到圣诞灯怎么办? I. 打开APP,发现并连接不了圣诞灯怎么办?
RefAware 無限知識的開端 Select and insert images as appropriate (see “image menu” next slide). Note that you can remove any of the “image placement” squares by.
微软新一代云计算 面向企业的 Office 365 客户培训大纲
Android App簡介及 App Inventor 2體驗 靜宜大學資管系 楊子青
水墨风格年终汇报模板 Simple style flower general template 个人汇报 | 年终总结 | 毕业答辩
数据库内容及检索功能 – 如何利用这些资源帮助科技论文的写作与发表 钟似璇 (Sixuan Zhong s.
簡易 Visual Studio 2005 C++ 使用手冊
PubMed整合显示图书馆电子资源 医科院图书馆电子资源培训讲座.
Decision Support System (靜宜資管楊子青)
Microsoft SQL Server 2008 報表服務_設計
App Inventor 2初體驗 靜宜大學資管系 楊子青
CLICK HERE TO ADD YOUR TITLE
SAP R/3架構及前端軟體安裝 Logical View of the R/3 System SAP Frontend 6.2安裝
資料庫 靜宜大學資管系 楊子青.
成品检查报告 Inspection Report
Programming Your App’s Memory 靜宜大學資管系 楊子青
人工智能人才培养示范基地建设分享 上海电子信息职业技术学院 邵瑛.
EndNote X6 進階 Advance your Research and Publish Instantly
CLICK HERE TO ADD YOUR TITLE
多人開發Screen與專案Merge 靜宜大學資管系 楊子青
爬蟲類動物1 Random Slide Show Menu
爬蟲類動物2 Random Slide Show Menu
想想看: 長方體體積.
資料庫 靜宜大學資管系 楊子青.
爬蟲類動物1 Random Slide Show Menu
基于App Inventor的物联网工程导论课程实验设计
HelloPurr_Extend 靜宜大學資管系 楊子青
App Inventor 2體驗 靜宜大學資管系 楊子青
Repeating Blocks: Iteration 靜宜大學資管系 楊子青
SAP 架構及基本操作 SAP前端軟體安裝與登入 Logical View of the SAP System SAP登入 IDES
Text To Speech (TTS, 文字轉 語音)、讀簡訊 靜宜大學資管系 楊子青
30% 30% CLICK HERE TO ADD YOUR TITLE CLICK HERE TO ADD YOUR TITLE
Create and Use the Authorization Objects in ABAP
TinyDB資料庫 靜宜大學資管系 楊子青.
實驗十六:匯出APK安裝檔與軟體上架.
中药饮片调剂技术 中药饮片调剂室基本设施.
國立清華大學 National Tsing Hua University
RecyclerView and CardView
反覆迴圈、陣列、副程式 靜宜大學資管系 楊子青
反覆迴圈、陣列、副程式 靜宜大學資管系 楊子青
怎樣把同一評估 給與在不同班級的學生 How to administer the Same assessment to students from Different classes and groups.
code::blocks 與GLUT 程式開發
NFC (近場通訊, Near Field Communication) 靜宜大學資管系 楊子青
Develop and Build Drives by Visual C++ IDE
Section 1 Basic concepts of web page
When using opening and closing presentation slides, use the masterbrand logo at the correct size and in the right position. This slide meets both needs.
Presentation transcript:

Working with Databases (II) 靜宜大學資管系 楊子青 2013.4.22.

Creating a Custom TinyWebDB Service http://beta.appinventor.mit.edu/learn/reference/other/tinywebdb.html TinyWebDB is an App Inventor component that allows you to store data persistently in a database on the web. By default, the TinyWebDB component stores data on a test service provided by App Inventor, http://appinvtinywebdb.appspot.com/ . This service is helpful for testing, but it is shared by all App Inventor users, and it has a limit of 1000 entries. If you use it, your data will be overwritten eventually. For most apps you write, you'll want to create a custom web service that isn't shared with other App Inventor apps and programmers.

To create your own web service Follow these instructions: Download App Engine for Python at http://code.google.com/appengine/ . (之前需先下載Python) After installing it, run the GoogleAppEngineLauncher by clicking its icon. Download this sample code and Unzip the downloaded zip file. It is a zip file containg the source code for your custom tinywebdb web service. (檔案有問題,改找appinventordb.zip) In the GoogleAppEngineLauncher, choose File | Add Existing Application . Browse to set the Path you just unzipped. Then click the Run button. This will launch a test web service that runs on your local machine. You can test the service by opening a browser and entering “localhost:8080” as the URL. You‘ll see the web page interface to your web service. (如果瀏覽器無法顯示,也沒有關係)

To create your own web service (Cont.) Follow these instructions: Your app is not yet on the web. You need to upload it to Google's App Engine servers. In the GoogleAppEngineLauncher, choose Dashboard . Enter your Google account information and you'll be taken to an App Engine dashboard. Choose Create an Application . You'll need to specify a globally unique Application Identifier. Provide a name to your app and click Create Application to submit. Edit the file app.yaml. Modify the first line so that the application matches the application identifier In GoogleAppEngineLauncher, choose Deploy and follow the steps. Test to see if your app is running on the web. In a browser, enter myapp.appspot.com, only substitute your identifier for "myapp". It’s on the web and you can access it from your App Inventor for Android app.

To create your own web service (Cont.) Follow these instructions: Your App Inventor apps can store and retrieve data using your new service. Just do the following: Drag in a TinyWebDB component into the Component Designer. Modify the ServiceURL property from the default http://appinvtinywebdb.appspot.com/ to your web service. Any StoreValue operations (blocks) will store data at your service, and any GetValue operations will retrieve from your service.

1. 下載Python 2.7.4版

安裝Python 2.7.4版

2. 下載及解壓縮appinventordb.zip

3.下載Google App Engine SDK for Python

安裝Google App Engine SDK

安裝後,Launch應用程式

4. 加入應用程式

設定應用程式路徑

Run應用程式,再Browse於瀏覽器 以Local端執行

於Local端執行,有可能無法顯示 不過沒有關係

5. Dashboard應用程式到雲端

建立應用程式

設定應用程式Identifier與Title

應用程式註冊成功

編輯應用程式

修改app.yaml的application值

6. 部署(Deploy)應用程式至雲端

部署過程

7.開啟瀏覽器,連至自己設定的 網路資料庫服務 (_.appspot.com)

直接輸入Tag與Value進行測試

查詢Tag貯存的Value值

8.於App Inventor修改TinyWebDB 服務網址(ServiceURL屬性)

執行測試程式

透過程式,已將資料存入自己設定的專屬網路資料庫