A clean, web-based blog application developed using ASP.NET Core MVC, Entity Framework Core, Identity for authentication, Azure SQL Database for data storage, and Docker for containerization and deployment. I made this project to demonstrate modern web development practices including CI/CD with Azure DevOps and containerization using Docker.
- User Authentication: Powered by ASP.NET Core Identity for secure user registration, login, and password management.
- Blog Post Management: Users can create, edit, and delete their blog posts.
- Image Upload: Users can upload images for their blog posts.
- Database: Azure SQL Database is used for storing user data and blog content(Local MS Sql Server used for Development purposes)
- Containerized Deployment: The application is containerized with Docker and deployed to Azure Web Apps.
- ASP.NET Core MVC
- Entity Framework Core
- ASP.NET Core Identity
- Azure SQL Database (Production db)
- Docker
- Bootstrap
- Azure Web Apps
- MS SQL Server(Development Db)
- .NET SDK 8.0+
- Docker Desktop
- Azure account (for deployment)
- Azure SQL Database
git clone https://github.com/yourusername/my-blog-app.git
cd my-blog-app
Before running the application, you need to set up the required environment variables. Depending on your environment (Development or Production), you may need to configure specific settings in appsettings.Development.json
or appsettings.Production.json
.
- For Development environment:
export ASPNETCORE_ENVIRONMENT=Development
- For ** Production** environment:
export ASPNETCORE_ENVIRONMENT=Production
dotnet ef database update
dotnet run
Navigate to http://localhost:5005
on your browser. (This may change depending on your configuration)
docker-compose up --build
- Set up CI/CD with Azure DevOps
- Push Docker imaged to Docker Hub(or wherever you choose)
- Deploy to Azure Web App
This project is no longer open to contributions. Thank you!!