Building CLR/H Registration Site              withASP.NET MVC4 and EF4.1 Code First
Requirements of registration site.• Attendees can do registration from Web.  – Entry name, e-mail, twitter id ...• Share a...
Today’s key words      ASP.NET MVC4                Visual StudioWeb Pages View                           11 Beta    “Razor...
Live DemoCreate It!
Next step...Publish to internet It!
Why AppHarbor?• The most reason is... I interested in it! :)• Second reason, it is low cost at start up.  – Form $0 for AS...
Notice• You must store the all NuGet packages which  installed into Git repository.  – I tried “NuGet Package Restore” fea...
Live DemoPublish to internet It!
Next step...Authenticate & Authorize It!
How toauthentication?
Windowsauthentication?
No.It is internet site,not intranet.
Formsauthentication?
Sorry.I do not chooseFormsauthenticationtoday.
My choice is...
HTTPBasicAuthentication!
Why HTTP Basic Authentication?• Becase, it is HTTP standard.• So that, we can authenticate any clients by  standard way.• ...
How to add in Basic auth functionin your Web app?• Not use IIS function.  – It depend on Windows local user account, or   ...
Live DemoAuthenticate & Authorize It!
Next step...Provide web api!
Live DemoProvide web api!
Next step...Extra Stage!
I think, it is not Best solution...• There is no function to manage user  account s, yet...  – We can configure HTTP Auth ...
I have an idea :)
GoogleSpread Sheet :P
Using Google Spread as a Database• Install “GDataDB” from NuGet!• Then, you can use Google Spread Sheet as  a Database.  –...
Live DemoStore into Google It!
Advantage• Easy to share and access control.   – Based on Google Documet platform.• Nothing to do.   – “Sync” is not requi...
At last...Conclusion.
• VS11 is very powerfull, and EF41CodeFirst  allows you to develop rapidly!• You can get anything you want from NuGet!  – ...
Thank you!
Upcoming SlideShare
Loading in...5
×

Building CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirst

1,387

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,387
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Building CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirst

  1. 1. Building CLR/H Registration Site withASP.NET MVC4 and EF4.1 Code First
  2. 2. Requirements of registration site.• Attendees can do registration from Web. – Entry name, e-mail, twitter id ...• Share attendees list only within CLR/H staffs. – The list is used by staff at reception.
  3. 3. Today’s key words ASP.NET MVC4 Visual StudioWeb Pages View 11 Beta “Razor” Syntax ASP.NET AppHarbor Web API NuGet Git Entity Framework 4.1 Code First Twitter Bootstrap SQL Server 2012 LocalDB
  4. 4. Live DemoCreate It!
  5. 5. Next step...Publish to internet It!
  6. 6. Why AppHarbor?• The most reason is... I interested in it! :)• Second reason, it is low cost at start up. – Form $0 for ASP.NET Web Site hosting. – From $0 fot Rent SQL Server (20MB limited).
  7. 7. Notice• You must store the all NuGet packages which installed into Git repository. – I tried “NuGet Package Restore” feature, but it didn’t work.• EF4CodeFirst “DropDatabase” initializer doesn’t work. – Because the database is not mine. It is only rental. So, we can not drop it. – You must use “CreateTablesOnly” initializer. (install from NuGet.)
  8. 8. Live DemoPublish to internet It!
  9. 9. Next step...Authenticate & Authorize It!
  10. 10. How toauthentication?
  11. 11. Windowsauthentication?
  12. 12. No.It is internet site,not intranet.
  13. 13. Formsauthentication?
  14. 14. Sorry.I do not chooseFormsauthenticationtoday.
  15. 15. My choice is...
  16. 16. HTTPBasicAuthentication!
  17. 17. Why HTTP Basic Authentication?• Becase, it is HTTP standard.• So that, we can authenticate any clients by standard way.• For example... Microsoft Excel “Web Query” feature!
  18. 18. How to add in Basic auth functionin your Web app?• Not use IIS function. – It depend on Windows local user account, or Active Directoy.• Instead, install “HTTP Auth Module” from NuGet.
  19. 19. Live DemoAuthenticate & Authorize It!
  20. 20. Next step...Provide web api!
  21. 21. Live DemoProvide web api!
  22. 22. Next step...Extra Stage!
  23. 23. I think, it is not Best solution...• There is no function to manage user account s, yet... – We can configure HTTP Auth Module to use MembershipProvider, but...• Excel Web Query is Very convenient, but it is not full automatic. – We have to sync manualy.
  24. 24. I have an idea :)
  25. 25. GoogleSpread Sheet :P
  26. 26. Using Google Spread as a Database• Install “GDataDB” from NuGet!• Then, you can use Google Spread Sheet as a Database. – Spread Sheet Documents = Databases – Work Sheets = Tables – Rows = Entities – Columns = Properties of Entity – Column name mapped to property name.
  27. 27. Live DemoStore into Google It!
  28. 28. Advantage• Easy to share and access control. – Based on Google Documet platform.• Nothing to do. – “Sync” is not required.• But... It is very slow :( – It is not “real” database.
  29. 29. At last...Conclusion.
  30. 30. • VS11 is very powerfull, and EF41CodeFirst allows you to develop rapidly!• You can get anything you want from NuGet! – Many many usefull libraries, modulues... – Many many nice girl friends...• Excel Web Query is nice feature! – Keep the way to HTTP standard.• You can publish your Web apps without cost by AppHarbor! – With SQL Server, not only Web app hosting!
  31. 31. Thank you!
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×