Giter Site home page Giter Site logo

dotvvm-samples-checkbook's Introduction

Screenshot

CheckBook: DotVVM Sample App

This is a sample application featuring the basic principles of DotVVM, an open source MVVM framework for ASP.NET Core and OWIN.

This application demonstrates using DotVVM 4.1.0 with ASP.NET Core, Entity Framework Core and SQLite database.

You can find an older version of this sample using ASP.NET 4.5 with OWIN in the dotnetframework branch.

Prerequisites

How to run the sample

  1. Open the GitHub repo in Visual Studio or git clone https://github.com/riganti/dotvvm-samples-checkbook.git

  2. Open src/CheckBook.sln Open the solution file

  3. Right-click the Checkbook.App project and select View > View in Browser View CheckBook in Browser

  4. The default user account is [email protected] / 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 Core model

    • Services folder is a simple business layer. The services are registered in the IServiceCollection in the Startup.cs file.

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

  • 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.

dotvvm-samples-checkbook's People

Contributors

arcidev avatar exyi avatar hajekj avatar michaltichy avatar ropack avatar rumbeer avatar tomasherceg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotvvm-samples-checkbook's Issues

Redirect to home exception

After I log in it tries to redirect me to home page but I get this error:
Exception of type 'DotVVM.Framework.Hosting.DotvvmInterruptRequestExecutionException' was thrown

no idea...but I did check Dotvvmstartup to see if home was register in thr routes and it was not so I put it in there...but still same error.

Thanks for the help.

Incompatible Project

I have run your dotvvm sample project but got project incompatible issue. I tried to load in VS 2015 & 2013 but no luck.

checkbook incompatible

Thanks,Z

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.