Coder Social home page Coder Social logo

crash-course-aspnet6-mvc's Introduction

MVC Crash Course - ASP.NET Core 6

Prerequisites

N O T E: when this project runs it will create two different Sqlite databases, stored in the Environment.SpecialFolder.LocalApplicationData folder. (C:\Users\USERNAME\AppData\Local on Windows and /Users/USERNAME/.local/share on Mac):

  • carvedrock-admin.db (this is the main application database)
  • carvedrock-admin-users.db (this is ASP.NET Core Identity)

VS Code Setup

Any flavor of Visual Studio or Rider will include the things you need to run ASP.NET projects, but VS Code requires some additional setup.

The C# extension (link above) is required to use this repo. I have some other settings that you may be curious about and they are described in my VS Code gist.

App features

The application is the starting point for an "Admin" application for a fictional company called Carved Rock for its users to maintain the products that it sells.

  • The primary technology is ASP.NET Core 6 MVC
  • Entity Framework (EF) Core is used with Sqlite for the database
  • Basic CRUD operations are supported on Products and Cateogories
  • Styled with Bootstrap and the Litera Bootwatch theme
  • Repository and Domain Logic classes are used with dependency injection (DI) to support testability
  • The Category of a product is a related entity with navigation property
  • Validation is present on both categories and products, and a sample of more complex validation is included on Products with FluentValidation
  • Products and Categories require users to be authenticated
  • ASP.NET Identity (scaffolded) is used for the the authentication (self-registration works fine - no inital users are created)
  • The "initial data" is reset each time the app starts, so feel free to play around!!

Doc References

crash-course-aspnet6-mvc's People

Contributors

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