This repo contains the source code demoed during the Xamarin Dev Days in Madison on August 22, 2013.
The slides are contained within the "Heads In The Clouds.pdf"
Before we get this to work, we first have to create a portal within Azure however ... we can either do this the easy way, or the hard way.
- Go to http://windowsazure.com and create an account. (Just create a free one - it gives you more than enough credits to try this demo out).
- Create a new mobile service. Follow the wizard that it gives you. You'll probably need to create a new SQL Server and database, and will need a new user id and password for each.
- Remember all the names from step from steps 1 and 2.
- Create a new table from within the data section (use javascript).
- Call the table "Cheese"
- Create the following columns: "cheesename" "dairyname" (both strings) and "dateadded" date
- Create another table named "Rating"
- Create the following columns in that table: "cheeseid" (string), "wedgerating" (int), "notes" (string), "daterated" date
- Clone the Git repo that Azure mobile services gives you
- Fork this (my) repository
- Take what's in /Azure/cheesed-devdays/service and put it into the cloned repo from step 1.
- Push the repo up to Azure.
Yeah ... go with the easy way.
- Then note the "application key* found under the "manage keys" button on the button of the "dashboard tab".
Just clone or fork this repo ... then within the /Devdays/Cheesed/Cheesed/DataService directory - within AzureCheeseDataService.cs and OfflineCheeseDataService.cs - find the YOUR_URL_HERE and YOUR_KEY_HERE and replace those with the values you copied.
Once you did that ... you're good to go with the demo!
- UI inspiration for the details view and card view on the "recent ratings" from Syntax Is My UI
Icons from The Noun Project
-
Cheese Wedge: Elliott Snyder
-
Cheese Block: artworkbean
-
Beer Mug: sachan
-
Cow photo: Kosmopolitat [GFDL (http://www.gnu.org/copyleft/fdl.html) or CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0/)], via Wikimedia Commons