Sample DotVVM web app
C# CSS JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src remove typings Nov 6, 2017
.gitattributes Initial sample release Feb 28, 2016
.gitignore Updated UI for adding payments Sep 30, 2017
LICENSE Initial commit Feb 28, 2016 Update May 28, 2016

CheckBook: DotVVM Sample App

Running The Sample

If you are using SQL Server Express, just open the project in Visual Studio and run. The database will be created automatically.

If you use another database, you have to change the connection string in the web.config file first. You don't have to create an empty database, it will be created automatically.

The default user account is / Pa$$w0rd.

Features Demonstrated in the Sample

The sample is a demonstration of a simple web app with common features like authentication. There are two projects in the application:

  • CheckBook.DataAccess - Data Access Layer and Business Layer of the application

    • Model folder contains Entity Framework model

    • Services folder is a simple business layer. To make things simple and understandable for beginners, we don't use dependency injection and stuff like AutoMapper. All business layer methods are static.

    • Data contains objects that are passed from the DataAccess project to the App project. We don't use Entity Framework entities in the viewmodels because it would cause serialization and other issues.

  • CheckBook.App - a DotVVM web application

    • Controls folder contains two markup controls referenced from the pages.

    • ViewModels folder contains viewmodels of all pages. Most of the viewmodels derive from the base class called AppViewModelBase.

    • Views folder contains DOTHTML pages and a master page.

    • Startup.cs is a main application entry point.

    • DotvvmStartup.cs contains DotVVM route and resource configuration.