1 / 12

File -> New Project

File -> New Project. E: jonathan@paladincloudware.com G+: +JonathanPeterson42 GitHub & StackOverflow : Eonasdan. Jonathan Peterson Paladin Cloudware. Default VS MVC project. Extra Packages like Modernizr Messy Code Hour + of preparation to get a project ready.

virgil
Download Presentation

File -> New Project

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. File -> New Project E: jonathan@paladincloudware.com G+: +JonathanPeterson42 GitHub & StackOverflow: Eonasdan Jonathan Peterson Paladin Cloudware

  2. Default VS MVC project • Extra Packages like Modernizr • Messy Code • Hour + of preparation to get a project ready

  3. How we’re going to fix it • Using PowerShell to get things going • Less • Web.config • Code templates • Data annotations • EditorFor Templates • Bundles

  4. Using PowerShell to get things setup • PowerShell can be used to automate our first task • Uninstall packages I don’t want • Install packages I always install • Update all the packages that are installed

  5. Using Less • Less gives us Mixins • Parameters and variables • Separate files

  6. Web.Config additions • View/web.config • Web.config and web.release.config

  7. Intermission: papercut http://papercut.codeplex.com

  8. Code Templates • Allows you to customize the OTB Views and Controllers • No more unnecessary comments • No more Resharpersquigglies • C:\Program Files (x86)\Microsoft Visual Studio 12.0\ • Common7\IDE\Extensions\Microsoft\Web\Mvc\Scaffolding\Templates

  9. Data Annotations • Uses for validation (Required, Range, String Length) • Specify field types (Phone, Email) • DisplayFor and ValidationFor text

  10. EditorFor Templates • Must be in Views > Shared > EditorTemplates • Can be customized for each DataType

  11. Strongly Typed bundles • Takes away the guesswork • Easier to make changes to the bundle’s route

  12. Links • Github: http://goo.gl/UhMAFd • Code Templates: • C:\Program Files (x86)\Microsoft Visual Studio 12.0\ Common7\IDE\Extensions\Microsoft\Web\Mvc\Scaffolding\Templates • Less: http://lesscss.org/ • Papercut (SMTP Server): http://papercut.codeplex.com

More Related