Welcome to the ASP.NET MVC CRUD Tutorial

This sample CRUD application demonstrates how to create, read, update, and delete records using ASP.NET MVC. It covers various deployment strategies to Azure, including using Docker and GitHub Actions for continuous integration and deployment. Whether you're a beginner looking to understand the basics of MVC or an experienced developer exploring advanced deployment methods, this tutorial offers a comprehensive guide.

Features of this Sample CRUD Application:

  • Comprehensive ASP.NET MVC CRUD implementation
  • Azure deployment strategies using Docker and GitHub Actions
  • Scalable architecture with support for Azure App Services and Virtual Machines
  • Open-source project with opportunities for contributions

Ready to get started? Explore the code and follow the steps to deploy your own ASP.NET MVC application to Azure. Stay tuned for upcoming features like integration with React, Vue, and mobile applications.

Why Choose This Tutorial?

This project is designed to help developers at all levels understand the best practices for building and deploying ASP.NET MVC applications. By following this guide, you will learn how to efficiently manage the lifecycle of an MVC application, from development to production, using modern DevOps practices.

Project Readme.MD

SampleMvcCRUD

A .NET Application designed to demonstrate multiple approaches for implementing a simple maintenance (CRUD) user interface for the web.

For deployments, there are GitHub Actions with Continuous Integration/Continuous Deployment (CI/CD) pipelines targeting Azure App Services and Docker containers.

.NET

.NET

https://github.com/markhazleton/SampleMvcCRUD/blob/main/.github/workflows/docker-image.yml

Docker

  • The Docker image is available on Docker Hub: markhazleton/mwhsampleweb. A GitHub Action is configured to create an updated image each time the main branch is updated.

Hosting

The .NET 8 Web application is hosted on:

Source code is maintained on GitHub: SampleMvcCRUD.

Usage

This application demonstrates various techniques in the ASP.NET MVC Framework for common maintenance activities (CRUD: Create, Read, Update, Delete). It is a project to showcase the integration between Azure and GitHub for a web application.

Topics Covered:

  1. Azure DevOps - CI/CD with Azure Pipelines.
  2. GitHub Actions for building and deploying to Azure App Service.
  3. Application Development Approach
  4. Integration of Azure DevOps and GitHub Repository.
  5. Azure Application Insights for monitoring Azure App Services.
  6. Unit Testing as part of the CI Pipeline.
  7. Code Rush - Continuous Code Quality Analysis
  8. Git Flow Branching Strategy
  9. Swagger and OpenAPI for documentation.
  10. Docker for containerization and deployment under Linux.

Microsoft .NET Versions

  1. .NET Standard for common projects.
  2. .NET 8.0 Web Application.

Author

Mark Hazleton

Copyright 2018-2024 Mark Hazleton

Code released under the MIT License.