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.
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:
- Microsoft Azure Virtual Machine (VM) running IIS https://samplecrud.markhazleton.com/
- Microsoft Azure App Service, Linux, using GitHub Actions CI/CD https://samplecrud.azurewebsites.net/
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:
- Azure DevOps - CI/CD with Azure Pipelines.
- GitHub Actions for building and deploying to Azure App Service.
- Application Development Approach
- Integration of Azure DevOps and GitHub Repository.
- Azure Application Insights for monitoring Azure App Services.
- Unit Testing as part of the CI Pipeline.
- Code Rush - Continuous Code Quality Analysis
- Git Flow Branching Strategy
- Swagger and OpenAPI for documentation.
- Docker for containerization and deployment under Linux.
Microsoft .NET Versions
- .NET Standard for common projects.
- .NET 8.0 Web Application.
Author
Copyright and License
Copyright 2018-2024 Mark Hazleton
Code released under the MIT License.