Petboard Sample
The Petboard sample application shows how to Amazon Web Services in an ASP.NET application. The web application is a catalog of pets and information about each pet, including a profile photo, likes, and dislikes. Petboard shows how to organize structured data using Amazon SimpleDB, serve images from Amazon Simple Storage Service (S3), and implement ASP.NET Membership using Amazon SimpleDB.
About the Sample
Petboard demonstrates how to use the AWS SDK for .NET library in an ASP.NET 3.5 web application. The sample uses Amazon Web Services in a number of ways:
- ASP.NET Membership based on Amazon SimpleDB
- Pet data stored in Amazon SimpleDB
- Pet images stored in Amazon S3
On initial launch of the application, you also have the option of populating the application with information about pets on the Amazon Web Services team.
Prerequisites
- You must have a valid Amazon Web Services developer account.
- You must be signed up to use Amazon S3. For more information, see http://aws.amazon.com/s3.
- You must be signed up to use Amazon SimpleDB. For more information, see http://aws.amazon.com/simpledb.
- Requires ASP.NET 3.5 or later.
Running the Sample
The basic steps for running the sample are:
- Open the
PetBoard.sln file in Visual Studio.
- Set your AWS credentials in Project Settings. Right click on the ‘PetBoard’ project and select ‘Properties’. In the Settings tab of the project properties enter the AWS Access Key and AWS Secret Access Key into the corresponding field value cells.
- Press F5 to start the application.
- When running the application for the first time, Petboard will guide you through the process of configuring the application:
- Create an account. This will create an account inside the ‘petboard-membership’ Amazon SimpleDB Domain inside your AWS account.
- Populating sample pet data. Upon running the Petboard application, the code will upload data into your Amazon SimpleDB and Amazon S3 account. The data stored in Amazon SimpleDB will not cross the free tier, but you will be charged for the images uploaded to Amazon S3.