A professional movie management application built with ASP.NET Core MVC β featuring full CRUD operations, search & filter functionality, and a modern responsive UI.
- Movie CRUD β Create, Read, Update, and Delete movies
- Search & Filter β Search by title and filter by genre
- Responsive Design β Modern Bootstrap 5 UI that works on all devices
- SQLite Database β Portable, file-based database via Entity Framework Core
- Security Headers β CSP, X-Frame-Options, X-Content-Type-Options, and more
- Health Checks β Built-in health check endpoint for monitoring
- Professional Error Pages β Custom 404, 403, and 500 error pages
- .NET 10.0 SDK or later
- Clone the repository
git clone https://github.com/RafaelBatistaDev/ASP.NET-Core-Web-App-MVC.git
cd ASP.NET-Core-Web-App-MVC- Restore dependencies
dotnet restore- Apply database migrations
cd MvcMovie
dotnet ef database update- Run the application
dotnet run- Open your browser
Navigate to https://localhost:5001 or http://localhost:5000.
MvcMovie/
βββ Controllers/ # MVC Controllers
β βββ HomeController.cs
β βββ HelloWorldController.cs
β βββ MoviesController.cs
βββ Data/ # Database context
β βββ MvcMovieContext.cs
βββ Migrations/ # EF Core migrations
βββ Models/ # Domain models
β βββ Movie.cs
β βββ ErrorViewModel.cs
β βββ MovieGenreViewModel.cs
βββ Views/ # Razor views
β βββ Home/
β βββ Movies/
β βββ HelloWorld/
β βββ Shared/
βββ wwwroot/ # Static files
β βββ css/
β βββ js/
β βββ lib/
βββ Program.cs # Application entry point
βββ MvcMovie.csproj # Project file
βββ appsettings.json # Configuration
| Technology | Purpose |
|---|---|
| ASP.NET Core 10 | Web framework |
| Entity Framework Core 10 | ORM / data access |
| SQLite | Database engine |
| Bootstrap 5 | Frontend UI framework |
| Bootstrap Icons | Icon library |
Customize the application in appsettings.json:
{
"ConnectionStrings": {
"MvcMovieContext": "Data Source=MvcMovie.db"
},
"AppSettings": {
"ApplicationName": "MovieApp",
"Version": "1.0.0"
}
}This application implements the following security measures:
- Content Security Policy (CSP) β Restricts resource loading
- X-Content-Type-Options β Prevents MIME type sniffing
- X-Frame-Options β Prevents clickjacking
- X-XSS-Protection β Enables browser XSS filter
- Referrer-Policy β Controls referrer information
- HTTPS Redirection β Enforces secure connections in production
- Anti-Forgery Tokens β Protects against CSRF attacks
This project is licensed under the MIT License β see the LICENSE file for details.
Rafael Batista Dev
- GitHub: @RafaelBatistaDev
Built with β€οΈ using ASP.NET Core MVC