Making a REAL web application with ASP.NET Web API and Handlebars.js
7/27/2012Among other things. About all the way through Scott Allens Pluralsight course on getting to know MVC4 upside down and left and right. In it he did a little demo of how easy it is to abstract out your web api calls as well as bind the data returned from them to templates using handlebars.js.
Perfect! I have been thinking of the best way to accomplish the new web app I have started working on, and I think he showed me the best way to do it! Here is a high-level run down of the project structure and the technologies I will be using. Stay tuned for the posts to follow in the next few days to see an actual implementation, and I may even try to get a live demo up on this site so you can see the final (beta) product.
- Sql Server Database (Nothing fancy or special, happening here, can be LocalDb, Express, whatever)
- Entity Framework Code First as my Data Access Layer
- ASP.NET MVC4 Web Api Controller to handle all the business logic
- A single ajax-enabled web page to handle all the front end UI and interactions. Will be heavy in Javascript and Handlebars.js
Thats pretty much it! Excited to see how this project goes through. Should have the first part of this series up tonight or tomorrow.
Cheers,
{David Stanley}