Git Product home page Git Product logo

looselycoupledstructure's Introduction

Loosely coupled MVC solution structure

About

December 2013 โ€“ February 2014

This is an presentation for building scalable, extendable and easy to maintain project structure. It follows these practices/patterns:

It is based on my experience with architecting/extending/working on applications with such structures. The presentation is accompanied with basic solution, which shows the practices in action and which I use as template when I design projects based on these patterns.

English version: LooselyCoupledMVCStructure_EN.pdf
Bulgarian version: LooselyCoupledMVCStructure_BG.pdf

Technologies used in code template

.NET, MVC, C#, Entity Framework - Code First, Ninject, Glimpse, Elmah

Poke/Edit

In order to open the solution you will need Visual Studio 2012 or greater. To run it, you will need also Microsoft SQL Server.

The application uses Code First approach with databases, which means that the database will be created on first run. But before that you need to configure the connection strings.

Locate in web.config and app.config the following lines:

<connectionStrings>
    <add name="DBContext" providerName="System.Data.SqlClient" connectionString="Server=(local);Database=MVCTemplate;Integrated Security=True;" />
    <add name="ElmahConnectionString" providerName="System.Data.SqlClient" connectionString="Server=(local);Database=MVCTemplate;Integrated Security=True;" />
  </connectionStrings>

Replace (local) in Server=(local); with the name of your SQL Server instance. You can substitute MVCTemplate in Database=MVCTemplate; if you want to change the name of the created database.

When you build the solution the needed packages will be automatically downloaded from NUGET. If that doesn't happen, go to TOOLS > NuGet package Manager > Package Manager Settings > check Allow NuGet to download missing packages. If that doesn't help or some of the packages cannot be downloaded, get packages.zip and extract it in the directory of the solution (this is archive of the used packages).

Schemes in presentation

alt text


alt text


alt text

looselycoupledstructure's People

Contributors

raste avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.