Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎬 MovieApp - ASP.NET Core MVC

ASP.NET Core EF Core SQLite Bootstrap 5 License

A professional movie management application built with ASP.NET Core MVC β€” featuring full CRUD operations, search & filter functionality, and a modern responsive UI.


✨ Features

  • 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

πŸš€ Getting Started

Prerequisites

Installation

  1. Clone the repository
git clone https://github.com/RafaelBatistaDev/ASP.NET-Core-Web-App-MVC.git
cd ASP.NET-Core-Web-App-MVC
  1. Restore dependencies
dotnet restore
  1. Apply database migrations
cd MvcMovie
dotnet ef database update
  1. Run the application
dotnet run
  1. Open your browser

Navigate to https://localhost:5001 or http://localhost:5000.

πŸ“ Project Structure

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

πŸ› οΈ Tech Stack

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

βš™οΈ Configuration

Customize the application in appsettings.json:

{
  "ConnectionStrings": {
    "MvcMovieContext": "Data Source=MvcMovie.db"
  },
  "AppSettings": {
    "ApplicationName": "MovieApp",
    "Version": "1.0.0"
  }
}

πŸ”’ Security

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

πŸ“ License

This project is licensed under the MIT License β€” see the LICENSE file for details.

πŸ‘¨β€πŸ’» Author

Rafael Batista Dev


Built with ❀️ using ASP.NET Core MVC

About

🎬 ASP.NET Core MVC Movie Application

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages