📱 ASP.NET Core MVC Mobile Shop – Part 2: Create Project & Install NuGet Packages
🚀 Introduction
Welcome to Part 2 of our Mobile Shop Website using ASP.NET Core MVC series.
In this tutorial, we will create a new ASP.NET Core MVC project and install all the required NuGet packages needed to build a modern eCommerce application.
This guide is beginner-friendly and will help you set up a strong foundation for your project.
🎯 What You Will Learn
In this part, you will learn:
- How to create a new ASP.NET Core MVC project
- How to install NuGet packages using CLI
- Understanding important packages used in real-world applications
- Preparing your project for database, authentication, and payments
🛠️ Step 1: Create New ASP.NET Core MVC Project
Follow these steps:
- Open Visual Studio 2022
- Click on Create a new project
-
Select:
👉 ASP.NET Core Web App (Model-View-Controller) - Click Next
-
Enter:
-
Project Name:
MobileShop - Location: Choose your preferred folder
-
Project Name:
- Click Next
-
Select:
- Framework: .NET 8
- Authentication Type: None (we will configure later)
- Click Create
✅ Your project is now ready!
📦 Step 2: Install Required NuGet Packages
Now we will install essential NuGet packages for our mobile shop project.
You can install them using Package Manager Console or .NET CLI.
💻 Run the Following Commands:
dotnet add package AutoMapper.Extensions.Microsoft.DependencyInjection --version 12.0.1
dotnet add package Microsoft.AspNetCore.Identity.EntityFrameworkCore --version 8.0.0
dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 8.0.0
dotnet add package Microsoft.EntityFrameworkCore.Tools --version 8.0.0
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design --version 8.0.0
dotnet add package Stripe.net --version 43.0.0
dotnet add package ClosedXML --version 0.102.1
dotnet add package Microsoft.AspNetCore.Authentication.Facebook --version 8.0.0
dotnet add package Microsoft.AspNetCore.Authentication.Google --version 8.0.0
📚 Explanation of NuGet Packages
Here’s a simple explanation of each package:
🔹 AutoMapper
Helps map data between objects (e.g., Entity → ViewModel).
🔹 ASP.NET Core Identity
Used for:
- User Registration
- Login/Logout
- Role Management
🔹 Entity Framework Core (SQL Server)
Provides:
- Database connection
- CRUD operations
- ORM (Object Relational Mapping)
🔹 EF Core Tools
Used for:
- Migrations
- Updating database from models
🔹 Code Generation Design
Helps generate:
- Controllers
- Views
- CRUD pages automatically
🔹 Stripe.net
Used for:
- Online payment integration
- Secure checkout system
🔹 ClosedXML
Allows:
- Exporting data to Excel
- Creating reports
🔹 Google & Facebook Authentication
Enables:
- Social login
- Easy user authentication
🧩 Why These Packages Are Important?
These packages help us build a complete eCommerce system, including:
- ✅ User authentication system
- ✅ Database management
- ✅ Payment gateway integration
- ✅ Admin reporting tools
- ✅ Clean architecture
🔗 Previous Part (Important)
- 👉 Part 1: System Design
- 👉 Upcoming parts (Controllers, Database, UI, etc.)
🏁 Conclusion
In this part, we successfully:
- Created a new ASP.NET Core MVC project
- Installed all required NuGet packages
- Understood the purpose of each package
👉 In the next part, we will configure the database and set up Entity Framework Core for our Mobile Shop Website.
ASP.NET Core MVC tutorial, Mobile Shop Website, NuGet packages ASP.NET, Entity Framework Core 8, ASP.NET Identity, Stripe .NET integration, Google authentication ASP.NET, Facebook login .NET
📢 Final Note
If you found this helpful, stay tuned for the next part where we will start building the core functionality of our project step by step.

Comments
Post a Comment