.. | ||
bin | ||
Controllers | ||
Data | ||
Migrations | ||
Models | ||
obj | ||
Pages | ||
Properties | ||
publish | ||
Views/FoodItems | ||
wwwroot | ||
appsettings.Development.json | ||
appsettings.json | ||
deploy_to-azure.sh | ||
docker-compose.yml | ||
Dockerfile | ||
foodapp.csproj | ||
foodapp.sln | ||
foodapp.sql | ||
Program.cs | ||
README.MD | ||
remove-from-azure.sh | ||
Startup.cs |
1 Setting Up the ASP.NET Core Web Application what you need Install .NET SDK. Install Visual Studio or Visual Studio Code. Install MySQL. Install Git. Create ASP.NET Core Project
dotnet new webapp -n FoodApp cd FoodApp
FoodApp
FoodApp is an ASP.NET Core web application designed to facilitate online food ordering. It enables users to create, update, delete, and view food items, making it easier to manage food orders.
2 Description
This web application is built using ASP.NET Core and integrates with MySQL for data storage. The application is containerized using Docker, which simplifies deployment and environment consistency.
3 Features
- CRUD operations on food items.
- Docker support for easy deployment.
- Scaffolding for rapid page generation.
- Entity Framework Core for database interactions.
4 Technical Details Frontend: HTML, CSS, and Razor syntax are used to create dynamic web pages. Bootstrap framework ensures a clean and responsive design.
Backend: ASP.NET Core MVC framework is used for server-side scripting. Entity Framework Core with Pomelo.EntityFrameworkCore.MySql is utilized for database operations.
de Deployment
Azure Container Instances (ACI): The application is deployed to Azure Container Instances (ACI), providing scalability and flexibility. Docker containers are used for packaging the application.
Database Setup: A MySQL database is hosted on Azure, storing food item information. Migration files are used to manage the database schema.
Public Access: The application is accessible via the provided url - foodiweb.azurewebsites.net. Users can interact with the application through their web browsers.