PageRenderTime 41ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/README.md

https://bitbucket.org/DanTup/dantup-blog/
Markdown | 114 lines | 86 code | 28 blank | 0 comment | 0 complexity | f648b5dfafb4b37eb3412df51824e451 MD5 | raw file
  1. DanTup's ASP.NET MVC / Razor Blog Engine
  2. ========================================
  3. This is the source code for the new version of blog, being written in ASP.NET MVC. The latest version of the code can
  4. always be found at [code.dantup.com/blog](http://code.dantup.com/blog).
  5. At the time of writing, [my blog](http://blog.dantup.com/) is hosted on Google App Engine, which was written as an
  6. excercise in learning Python and a little about GAE. As my main skills are in .NET, it seemed a good idea to rewrite the
  7. blog using some new technologies to take advantage of this, including:
  8. * [ASP.NET MVC 3](http://www.asp.net/mvc)
  9. * [Entity Framework Code-First](
  10. http://weblogs.asp.net/scottgu/archive/2010/07/16/code-first-development-with-entity-framework-4.aspx)
  11. * [Razor](http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx)
  12. * [NuGet](http://nuget.org/) for package dependencies
  13. * Markdown (via [MarkdownHelper](http://nuget.org/List/Packages/MarkdownHelper) / MarkdownDeep.NET) (ok, this one might
  14. not be so new, but it's new to me!)
  15. I'm sharing the code in the hope that it might be useful to others. I learned most of what I know from the online
  16. community, so [sharing most of my source code online](http://code.dantup.com/) is an attempt to try and give a little
  17. back to others that are learning too. Hopefully, you should be able to run this project without any configuration. Just
  18. check the code out, open the solution, and press F5! As long as you have IIS Express installed, it should automatically:
  19. * Download dependencies from NuGet during compilation (to avoid bloating the repo with multiple versions of binaries)
  20. * Start up IIS Express (you may be prompted to allow it to configure port 50000 to point at the project)
  21. * Create a SQL CE database file in the App_Data folder (to avoid requiring SQL or SQL Express)
  22. * Populate the SQL CE database with test data
  23. The blog should be fully-functional without any configuration. If this is not the case, please let me know so I can fix
  24. it! You can contact me through BitBucket or [my blog](http://blog.dantup.com/).
  25. The new site will be hosted at [AppHarbor](http://appharbor.com/), which seems to the closest thing to [Google App
  26. Engine](http://appengine.google.com/) for small ASP.NET apps (Azure seems overkill, and isn't free for tiny apps).
  27. Code pushed to this repository will always be running at [dev.dantup.com](http://dev.dantup.com/) for testing. Once I've
  28. reproduced enough functionality from the GAE version, my live blog [blog.dantup.com](http://dev.dantup.com/) will be
  29. moved over to it.
  30. Web.config Settings
  31. ===================
  32. ### BlogAuthor
  33. The name of the author of the blog. Used in places such as the Feed author tags.
  34. ### BlogAuthorEmail
  35. The email address of the author. If provided, this will add an "Email Me" button to the sidebar.
  36. ### BlogAuthorTwitter
  37. The twitter username of the author. If provided, this will add a Twitter button to the sidebar.
  38. ### BlogAuthorSites
  39. A comma-separated list of sites owned by the author, used to output link rel=me tags. Note: Comma-sep is nasty, hoping
  40. for this to be moved to proper strongly-typed settings in the future if AppHarbor adds support (please vote for this
  41. here: http://feedback.appharbor.com/forums/95687-general/suggestions/1855625-add-the-ability-to-specify-web-config-transformati)
  42. ### OpenIDProvider and OpenIDLocalID
  43. Used to allow you to use your blog URL as an Open ID identifier.
  44. ### BlogTitle and BlogTagline
  45. The title and tagline used in the blog header. BlogTitle also appears at the end of page titles (eg. "{pagename} -
  46. {blogtitle}").
  47. ### BlogFooter
  48. This is shown at the foot of the page. NOTE: This is Markdown to allow for hyperlinks etc.
  49. ### PostFooter
  50. This is shown at the foot of the each post in the blog. NOTE: This is Markdown to allow for hyperlinks etc. and has the
  51. feed url appended so that it is usable in the Footer, eg.:
  52. > If you found this article interesting, why not \[subscribe to my feed\]\[feedurl\]?
  53. This is a valid PostFooter, and the link named "feedurl" will be added automatically.
  54. ### FeedPostFooter
  55. This is shown at the foot of the each post in the feed. NOTE: This is Markdown to allow for hyperlinks etc. and has the
  56. post url appended so that it is usable in the Footer, eg.:
  57. > This post was served up via my RSS feed. Please \[visit the original article\]\[posturl\] to read/post comments.
  58. This is a valid FeedPostFooter, and the link named "posturl" will be added automatically.
  59. ### DatabaseHost, DatabaseName, DatabaseUsername, DatabasePassword
  60. SQL Server database credentials. If DatabaseHost or DatabaseName are not provided, SQL CE will be used. If
  61. DatabaseUsername or DatabasePassword are not provided, integrated security will be used.
  62. ### AllowCreateDatabase
  63. Boolean to control whether the database will automatically be created if it doesn't exist. This won't work on AppHarbor,
  64. as you're unable to create databases.
  65. ### BlockRobots
  66. Defaults to False. Set to True if you want to serve a robots.txt to block all robots. This is useful on dev/staging
  67. sites (such as http://dev.dantup.com/, which has this value set to True in the AppHarbor control panel to avoid being
  68. indexed by search engines as it has duplicate content from my live blog).
  69. ### GoogleAnalyticsID
  70. Defaults to empty. If set, Google Analytics code will be output in the footer of the page using this tracking ID.
  71. ### FeedBurnerUrl
  72. Defaults to empty. If set, all lnks to the RSS Feed will go here instead of /feed. Also, any requests to /feed will be
  73. redirected here unless the user agent contains "feedburner".
  74. ### GoogleValidation
  75. Validation token for Google services that require a meta tag to be inserted in your site.
  76. ### BingValidation
  77. Validation token for Bing services that require a meta tag to be inserted in your site.
  78. Updates
  79. =======
  80. If you want notification of when new changes are pushed to this code, you have a few options:
  81. * [Check back frequently](http://code.dantup.com/blog) - Nasty, manual :(
  82. * [Subscribe to the BitBucket project feed](https://bitbucket.org/DanTup/dantup-blog/rss) - An RSS feed of commits.
  83. * [Follow the project on BitBucket](https://bitbucket.org/DanTup/dantup-blog/follow) - Shows on your BB dashboard.
  84. * [Follow @DanTupBlog on Twitter](http://twitter.com/DanTupBlog) - Announces (via [TweetHarbor](http://tweetharbor.apphb.com)
  85. whenever a new build is pushed (and successfully deployed).
  86. * [Follow @DanTup on Twitter](http://twitter.com/DanTup) - I'll RT @DanTupBlog or tweet when significant updates are made.