[CROATIAN] Windows Azure Mobile Services

1,976 views
1,893 views

Published on

Presentation about Windows Azure Mobile Services I held on Mobility Day 2013 conference.
Note: Content is on Croatian language.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,976
On SlideShare
0
From Embeds
0
Number of Embeds
1,459
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

[CROATIAN] Windows Azure Mobile Services

  1. 1. Zagreb, 26. rujna 2013. Hotel Antunović
  2. 2. Zagreb, 26. rujna 2013. Windows Azure Mobile Services Bruno Kovačić
  3. 3. Zagreb, 26. rujna 2013. Hotel Antunović Hvala partnerima i sponzorima! Generalni sponzori Generalni medijski sponzor Glavni sponzori Partneri Medijski partneri Akademski partner On-line partner
  4. 4. Uobičajena mobilna aplikacija  Pohrana podataka u cloud  Autentikacija  Backend – API  Scheduled jobs  Push notifikacije
  5. 5. Azure Mobile Services  Backend za mobilne aplikacije  Minimalno koda  Jednostavno za održavanje  Skalabilan  Jeftin  Robustan
  6. 6. Azure Mobile Services  Data  API  Scheduler  Identity  Notifications  Scale  Logs  Security
  7. 7. Data  Mobile Services Table  Apstrakcija nad Azure SQL Database  Podržane CRUD operacije  Dynamic schema
  8. 8. demo Mobile Services intro
  9. 9. Server side scripts  Dodatna kontrola nad CRUD operacijama  Node.JS  Moguće:  Pristupiti tablicama  Pristupiti bazi  Pristupiti ostalim Azure servisima (Storage…)
  10. 10. Server side scripts - primjer function update(item, user, request) { if ( !item.IsLocked ) request.execute(); }
  11. 11. CRUD metode - argumenti  User  Request  Item (Insert i Update)  Id (Delete)  Query (Read)
  12. 12. Pristup podacima - Table var todoTable = tables.getTable('TodoTable'); todoTable.where({ userId: user.userId, title: ‘TODO title' }).read({ success: function(results) { if (results.length > 0) { //... } } });
  13. 13. Pristup podacima - SQL var sql = "SELECT id FROM permissions WHERE userId = ?"; mssql.query(sql, [user.userId], { success: function(results) { if (results.length > 0) { // … } } });
  14. 14. Pristup podacima – SQL II mssql.open({ success: function(connection) { connection.query( //query to execute); } });  queryRaw()
  15. 15. demo Server side scripts
  16. 16. Ne sviđa vam se editor?  Visual Studio + Azure command-line tools
  17. 17. Mobile services custom API  Mogućnost kreiranja dodatnih API-a za business logiku  https://<service_name>.azure-mobile.net/api/<api_name> exports.post = function(request, response) { var tables = request.service.tables; var user = request.service.user; response.send(statusCodes.OK, { message : 'Hello World!' }); }; var result = await App.MobileService .InvokeApiAsync<RetClass>("myApi", System.Net.Http.HttpMethod.Post, null);
  18. 18. Kako rade push notifikacije
  19. 19. Push notifikacije
  20. 20. demo Push notifikacije
  21. 21. Notification hub  Broadcasting poruka  Zasebni Azure servis
  22. 22. Autentikacija Authentication Authorization Userstore Management UI Forget password? Customer support Dataprotection Integration withTwitter Usermapping Synchronization Integration With Facebook More Usermapping Facebook AuthAPI More Synchronization
  23. 23. Auth*
  24. 24. demo Auth*
  25. 25. Scheduler  Server side skripta  Izvršavanje  On demand  Intervalno  Primjeri  Arhiviranje starih podataka  Dohvaćanje podataka s 3rd party servisa  Resize slika
  26. 26. Diagnostics, Logging, Scale  Diagnostics  API calls  Active devices  Data out  Logging  console.error()  console.log()  console.warn()  Scale  Broj front-end instanci  Veličina baze
  27. 27. demo Scheduler, Log
  28. 28. Source control  Lokalni razvoj + Azure command-line tools  Integrirani GIT
  29. 29. pitanja
  30. 30. ankete
  31. 31. Hvala

×