PhluffyFotos is a Picture Gallery Service where users can upload their pictures from the web or mobile device. Users can upload, tag, and share photos in this sample.
The sample utilizes several technologies including ASP.NET MVC 4, Windows Azure SQL Databases and Windows Azure Storage, including Tables, Blobs, and Queues. In this sample, you will see how to pull together both a web application and Windows Azure Worker role to build cloud applications.
To run this sample on the cloud you need a Windows Azure Subscription. If you don't have a Windows Azure account, you can sign up for a free trial here.
You also need a Windows Azure Storage account, for leveraging Queues, Table and Blob Storage. Once you have your Windows Azure subscription, follow the steps in this article to create a storage account. Make note of the account name and Primary Acess Key.
To update the solution with the values obtained previously, follow these steps:
Modify the DataConnectionsString and the Diagnostic Connection string (Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString) for the worker role to point to the storage account you've just created.
Note: The connection string used for accessing the windows azure storage account is built with the following format:
DefaultEndpointsProtocol=https;AccountName={YOUR-ACCONT};AccountKey={YOUR-ACCONT-KEY}
In it you'll need to replace{YOUR-ACCONT}
with the storage account name and{YOUR-ACCONT-KEY}
with the Primary Access Key copied.
Publish the PhlufffyPhotos Cloud Service project to the Windows Azure Cloud Service you created in Step 2.
For a more detailed walk-through on how to perform each of the individual tasks required to get this sample working in Windows Azure, see the sample's Getting Started document in the repository containing the code for the sample.