4

I've read about Single-Page Applications recently and wanted to try one out. After watching Steve Sanderson's presentation (http://channel9.msdn.com/Events/TechDays/Techdays-2012-the-Netherlands/2159) I wanted to create a Single-Page App in my Visual Studio 2010 and test it out myself. But then I found out I can't choose an SPA template anymore, as it was removed in RC version.

Now, the question is - what should I do in Visual Studio 2010 (with MVC4 installed) to be able to create an SPA? I'd like to use KnockoutJS for UI and Upshot for data, both of which I'm able to install using Nuget. I haven't found anything relevant on the Web, every single page I've been to is telling me to use the SPA template, which has been removed since.

Thanks for any suggestion!

CD Smith
  • 6,597
  • 7
  • 40
  • 66
Filip Vondrášek
  • 1,208
  • 1
  • 13
  • 26
  • Hard to say without seeing your environment. Steve Sanderson provides instructions how to build SPA here [Single Page Application packages and samples] (http://blog.stevensanderson.com/2012/03/06/single-page-application-packages-and-samples/) – Aleksey Cherenkov Jun 16 '12 at 01:15
  • Thanks for your answer, the thing is, I can't follow the first step (Choose the Single Page Application subtemplate.), because the SPA subtemplate has been removed in RC version. – Filip Vondrášek Jun 16 '12 at 08:19

2 Answers2

6

SPA was excluded from RC because it wasn't ready in time for MVC4 release. Official ASP.NET SPA page. You can create project with MVC template and scaffold SPA via NuGet (SPA scaffolding)

Aleksey Cherenkov
  • 1,405
  • 21
  • 25
  • Thanks! I think I got it now. – Filip Vondrášek Jun 16 '12 at 18:41
  • 4
    You also don't need their spa template. You can create a spa on your own, as its just a web app the is contained on a single page. – John Papa Jun 17 '12 at 14:37
  • Anybody get that Nuget package working? I have it installed, but... nothing. I don't know what to do from here on out. The examples for the SPA project type don't apply. Are there any tutorials out there? Guess I can't showcase it at Code Camp next week :/ – vbullinger Sep 29 '12 at 21:19
  • Since he's too humble to say so, I'll say it for him. John Papa has put together a complete training video on how to build a SPA on pluralsight. You should check it out. I would up buying a years subscription to Pluralsight based on his offerings. http://pluralsight.com/training/courses/TableOfContents?courseName=spa – James Fleming Jan 24 '13 at 03:21
2

For Visual Studio 2010, try using Hot Towel by John Papa. Create an empty MVC4 app, then install a Nuget from Package Manager Console

PM> Install-Package HotTowel  
Dmitry
  • 251
  • 3
  • 8