Product Recommendations

Description

Product Recommendations is a web application that allows users to view and manage a list of recommended products. The application is built using Visual Studio 22, and it uses the following dependencies:

  • Dapper v2.0.123
  • Microsoft.EntityFrameworkCore v7.0.4
  • Microsoft.EntityFrameworkCore.Design v7.0.4
  • Microsoft.EntityFrameworkCore.SqlServer v7.0.4
  • Microsoft.EntityFrameworkCore.Tools v7.0.4

The application uses a table to display the list of recommended products. The table shows the product ID, name, and price. Users can also add new products to the list or edit existing products.

Installation

To install the application, follow these steps:

  1. Clone the repository.
  2. Open the solution file in Visual Studio 22.
  3. Install the dependencies listed above.
  4. Build the solution.

Usage

To use the application, follow these steps:

  1. Run the application in Visual Studio 22.
  2. The application will open in your default web browser.
  3. Click on the "Add Product" button to add a new product to the list.
  4. Click on the "Edit" button next to an existing product to edit its details.

HTML Template

The application uses a Bootstrap-based HTML template to display the list of recommended products.

Product Recommendations

This project provides a simple interface for displaying and managing product recommendations. It uses the following technologies:

  • Visual Studio 2022
  • C#
  • Dapper v2.0.123
  • Microsoft.EntityFrameworkCore v7.0.4
  • Microsoft.EntityFrameworkCore.Design v7.0.4
  • Microsoft.EntityFrameworkCore.SqlServer v7.0.4
  • Microsoft.EntityFrameworkCore.Tools v7.0.4
  • HTML5
  • Bootstrap 4.5.0
  • jQuery 3.5.1

Getting started

To get started with this project, follow these steps:

  1. Clone the repository to your local machine.
  2. Open the solution file ProductRecommendations.sln in Visual Studio 2022.
  3. Restore the NuGet packages for the project by right-clicking on the solution and selecting Restore NuGet Packages.
  4. Build the solution by right-clicking on the solution and selecting Build Solution.
  5. Run the project by pressing F5 or selecting Debug -> Start Debugging from the menu.

Features

This project provides a simple interface for displaying product recommendations. The interface consists of a table that displays the IDs, names, and prices of the products. Users can also add new products or edit existing ones.

Usage

The main page of the project displays a table of existing products, which is populated using data retrieved from the server. Users can edit an existing product by clicking the Edit button next to the product's name. This will open a modal window that allows the user to modify the product's name and price. Users can also add a new product by clicking the Add Product button, which will open a modal window that allows the user to enter the name and price of the new product.

Code structure

The project consists of a C# backend that uses the Dapper and Entity Framework Core libraries to retrieve and manage data from a SQL Server database. The frontend is built using HTML5, Bootstrap 4.5.0, and jQuery 3.5.1. The main entry point of the application is the Index.cshtml file, which contains the HTML and JavaScript code that defines the interface.

Contact

If you have any questions or comments about this project, please feel free to contact me.