Live coding 4th session – Implementing backend with WebApi2 and EF Code First
Implemented the backend as a RESTful service using WebApi2 and persistent storage to a SQL database with Entity Framework Code First. In the next session I’ll implement support for multiple users and authentication with facebook.
Live demo @ http://meetometer.azurewebsites.net/
Source code @ https://github.com/ajtowf/meetometer/
POST SCREENCAST EDIT
Forgot to setup automatic upgrading on application startup since I was using the package manager console in the screencast to setup the database. I added the following piece of code in commit 8be3b31:
Database.SetInitializer(new MigrateDatabaseToLatestVersion<AppDbContext, Configuration>());
Until next time, have a nice day!
Keywords : VS2013, Azure, HTML5, JavaScript, AngularJS, jQuery Mobile, AmplifyJS, WebApi, EntityFramework
Leave a Reply
Want to join the discussion?Feel free to contribute!