PizzaShack - A Csharp .NET technology demo

PizzaShack is a Visual Studio 2015 solution composed out of an MVC project and a unit test project. It is meant to display various ways of implementing most basic web app functionality.

PizzaShack is a basic web app that allows you to create pizza orders, view them, and update their status.

Contents

  • PizzaShack MVC project with a bit of everything (forms, AJAX, DI, data access etc.)
  • PizzaShackTests project with unit/integration tests

Technologies

By no means this is to be treated as the best way to code. The goal of this project was to demonstrate how certain things can be accomplished.

Setup

  1. Pull solution.

  2. Open in Visual Studio 2013/2015.

  3. Edit PizzaShack.pubxml file (Solution > PizzaShack > Properties > PublishProfiles) and update the following:

  4. <MSDeployServiceURL>{AZURE_URL}</MSDeployServiceURL>

  5. <Destination Path="Data Source={SERVER};Initial Catalog={SERVER_DATABASE};Persist Security Info=True;User ID={USER_NAME};Password={PASSWORD};Application Name=EntityFramework" Name="Data Source={SERVER};Initial Catalog={SERVER_DATABASE};Persist Security Info=True;User ID={USER_NAME};Password={PASSWORD};MultipleActiveResultSets=True;Application Name=EntityFramework" />

  6. <ParameterValue>metadata=res://*/Models.Pizza.csdl|res://*/Models.Pizza.ssdl|res://*/Models.Pizza.msl;provider=System.Data.SqlClient;provider connection string="Data Source={SERVER};Initial Catalog={SERVER_DATABASE};Persist Security Info=True;User ID={USER_NAME};Password={PASSWORD};MultipleActiveResultSets=True;Application Name=EntityFramework"</ParameterValue>

  7. Edit Web.config file (Solution > PizzaShack) and update the following:

  8. <add name="Entities" connectionString="metadata=res://*/Models.Pizza.csdl|res://*/Models.Pizza.ssdl|res://*/Models.Pizza.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source={SERVER};initial catalog={SERVER_DATABASE};persist security info=True;user id={USER_NAME};password={PASSWORD};MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /></connectionStrings>

  9. Once your data source and publish credentials are set, you can run the SQL statements located in Solution > PizzaShack > SQL > tables.sql file.

  10. You should be ready to go. Run the project.