This ASP.NET Core MVC application serves as a basic example of managing movies and users, including functionalities such as user registration, login, product management, and more. It demonstrates the core concepts of MVC architecture, entity manipulation, and basic authentication.
- User Management: Allows user registration, login, and deletion.
- Product Management: Enables CRUD operations on movie products, including create, read, update, and delete functionalities.
- Data Storage: Utilizes JSON files (
user.jsonandproduct.json) for persistence. - Validation: Implements basic validation for user and product entities.
- HomeController: Manages the main entry points of the application, including the home and privacy pages.
- UserController: Handles user-related actions, including login, registration, and deletion.
- ProductController: Responsible for product-related functionalities, including listing, creating, editing, and deleting products.
- WelcomeController: A simple controller to demonstrate additional, custom welcome functionality.
Ensure you have the following installed:
- .NET 5.0 SDK or higher
- An IDE that supports .NET development (e.g., Visual Studio, VS Code)
-
Clone the Repository
Clone the repository to your local machine using Git commands or download the ZIP directly from GitHub.
-
Open the Project
Open the solution file (
MvcMovie.sln) in your IDE. -
Restore Dependencies
Run the following command in the terminal or Package Manager Console to restore the NuGet packages:
dotnet restore -
Run the Application
Start the application by running:
dotnet runOr, use the IDE's built-in run/debug functionality.
-
Access the Application
Once running, access the application through your web browser at the default URL:
http://localhost:5000/.
- JSON Data Storage: The application stores user and product data in JSON files. Ensure these files are accessible and have the correct permissions.
- Model Validation: The application uses basic model validation. Review and customize validation rules as per your requirements.
- Error Handling: A simple error view is configured for handling application errors gracefully.
Specify the license under which this project is released, if applicable.
This README provides a comprehensive guide for setting up and navigating through your MVC Movie application. Adjust the content as necessary to match your project's specifics or additional details you wish to include.