A modern, responsive e-commerce web application built with ASP.NET Core 8.0 and deployed to Azure using Infrastructure as Code (Bicep). This project showcases best practices for cloud-native web development, automated deployment pipelines, and modern web UI design.
- Modern E-Commerce Interface: Responsive design with product showcases, promotional banners, and shopping cart functionality
- Azure Cloud Deployment: Fully automated deployment to Azure using Bicep templates
- CI/CD Ready: Configured for continuous integration and deployment
- Application Insights: Built-in monitoring and telemetry
- Security: HTTPS enforcement and HSTS headers
- Responsive Design: Mobile-first approach with Bootstrap 5
- Backend: ASP.NET Core 8.0 with Razor Pages
- Frontend: HTML5, CSS3, Bootstrap 5, JavaScript
- Infrastructure: Azure Bicep templates
- Cloud Platform: Microsoft Azure
- Monitoring: Azure Application Insights
- Containerization: Docker support
- .NET 8.0 SDK
- Azure CLI
- Git
- Azure subscription (for deployment)
-
Clone the repository
git clone https://github.com/ibnehussain/Demoappaz204.git cd Demoappaz204 -
Restore dependencies
dotnet restore
-
Run the application
cd Demoappaz204 dotnet run -
Open your browser and navigate to
https://localhost:5001orhttp://localhost:5000
-
Build the Docker image
docker build -t demoappaz204 . -
Run the container
docker run -p 8080:80 demoappaz204
This project includes multiple deployment options for Azure:
.\deploy-to-azure.ps1chmod +x deploy-to-azure.sh
./deploy-to-azure.sh-
Login to Azure
az login
-
Create Resource Group
az group create --name rg-demoappaz204-dev --location "East US" -
Deploy Infrastructure
az deployment group create \ --resource-group rg-demoappaz204-dev \ --template-file main.bicep \ --parameters main.bicepparam
-
Deploy Application Code
dotnet publish -c Release # Deploy using Azure App Service deployment methods
For detailed deployment instructions, see DEPLOYMENT-GUIDE.md and BICEP-DEPLOYMENT.md.
Demoappaz204/
βββ Demoappaz204/ # Main application project
β βββ Pages/ # Razor pages
β β βββ Index.cshtml # Home page with e-commerce features
β β βββ Privacy.cshtml # Privacy policy page
β β βββ Error.cshtml # Error handling page
β β βββ Shared/ # Shared layouts and components
β βββ wwwroot/ # Static web assets
β β βββ css/ # Stylesheets
β β βββ js/ # JavaScript files
β β βββ lib/ # Third-party libraries
β βββ Properties/ # Launch settings and configurations
β βββ Program.cs # Application entry point
β βββ Demoappaz204.csproj # Project file
βββ main.bicep # Azure infrastructure template
βββ main.bicepparam # Bicep parameters file
βββ deploy-*.ps1|.sh # Deployment scripts
βββ Dockerfile # Container configuration
βββ DEPLOYMENT-GUIDE.md # Deployment instructions
βββ BICEP-DEPLOYMENT.md # Bicep-specific deployment guide
βββ README.md # This file
The application uses standard ASP.NET Core configuration files:
appsettings.json- Production settingsappsettings.Development.json- Development settings
Key configuration parameters for Azure deployment:
| Parameter | Default | Description |
|---|---|---|
appName |
demoappaz204 | Base name for Azure resources |
environment |
dev | Environment designation (dev/staging/prod) |
location |
East US | Azure region for deployment |
appServicePlanSku |
F1 | App Service pricing tier |
dotnetVersion |
net8.0 | .NET runtime version |
- Hero Carousel: Rotating promotional banners
- Product Showcases: Featured products with pricing
- Promotional Banners: Seasonal sales and offers
- Responsive Design: Mobile-optimized layout
- Modern UI: Clean, professional interface
- Auto-scaling: Azure App Service automatic scaling
- Monitoring: Application Insights integration
- Security: HTTPS enforcement and security headers
- High Availability: Multi-region deployment support
# Clean and restore
dotnet clean && dotnet restore
# Build
dotnet build
# Run tests (if any)
dotnet test
# Publish for production
dotnet publish -c Release -o ./publish- Follows standard C# naming conventions
- Uses ASP.NET Core best practices
- Implements secure coding practices
- Responsive design principles
The application includes built-in monitoring through:
- Azure Application Insights: Performance metrics, request tracing, and error logging
- Azure Log Analytics: Centralized logging and analysis
- Health Checks: Application health monitoring
- Custom Telemetry: Business metrics and user behavior tracking
Security features implemented:
- HTTPS enforcement
- HSTS (HTTP Strict Transport Security)
- Secure headers configuration
- Input validation and sanitization
- Azure-managed certificates
The project is configured for:
- GitHub Actions workflows
- Azure DevOps pipelines
- Docker container builds
- Infrastructure as Code deployment
- Automated testing and validation
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support and questions:
- π§ Email: your-email@domain.com
- π Issues: GitHub Issues
- π Documentation: Wiki
- Add shopping cart functionality
- Implement user authentication
- Add payment integration
- Implement search functionality
- Add admin dashboard
- Mobile app development
- Microservices architecture migration
- TechM Team for project collaboration
- CloudThat for cloud architecture guidance
- Microsoft for Azure platform and .NET framework
- Bootstrap Team for responsive design framework
Made with β€οΈ by TechM Team
Deploy with confidence, scale with ease, monitor with precision.