Git Product home page Git Product logo

selly's Introduction

Selly

The code is pretty clear and self explanatory.

Basic flow: 1.) POST: Client -> Controller action -> BusinessLogic Core -> DataLayer.Extensions repositories -> DataLayer base repositories -> EF context -> Database 2.) GET: Database -> EF Context -> DataLayer base repositories -> DataLayer.Extensions repositories -> BusinessLogic Core -> Controller action -> Client

Between the BLL and DAL layers, models are validated and translated using AutoMapper. There are 4 model layers used for validating and encapsulating the entire flow of the application. Grouping them by type, we get:

1.) View Models (Website.Models, BLL.Models) -> These are the ones with which the user interacts 2.) Logic Models (DataLayer.Models) -> Used within the application to parse logic and interact with the database.

By using the Response type (from BLL) with OK status code instead of the classic HttpResponses with different http status codes, we enable easy transition to other client types, like mobile devices and gadgets, by offering this easy way of parsing and validating responses.

Some of the Frameworks, Patterns and Workflows

  • N-Tier setup of the project
  • Entity Framework (datalayer)
  • ASP.NET MVC WebApi (website project)
  • SQL Server Express 2014
  • Repository and Unit of work pattern (datalayer and datalayer.extensions)
  • Proper IOC for repositories, easily configurable (datalayer.extensions -> unit of work)
  • Factory pattern (BLL.Models.Response)
  • AngularJS, JQuery, Bootstrap (for UI)
  • Microsoft testing module, FluentAssertions and Autofixture for Unit Tests and Integration Tests
  • ITextSharp for writing documents
  • NLog for logging purposes And more on the road

To make the project and unit tests work, you need to do the following:

  • Create a database named Selly on the local sql server
  • Create a database named Selly-Tests on the local sql server
  • Perform a schema compare between the the Selly.Database project and each of the above databases to migrate the structure in them
  • Run the application: Selly.Website and you should have some basic UI (not all functionality is there) and also some mock data generated in the Selly database

selly's People

Contributors

bineagu avatar coddo 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.