Skip to content

Chiragj2003/CMSECommerce-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛒 ASP.NET Core 8 MVC CMS + E-Commerce Platform

This project is a fully functional CMS and E-Commerce web application built using ASP.NET Core 8 MVC, Entity Framework Core, and C# 12. It was developed as part of a practical, hands-on course focused on mastering ASP.NET Core MVC by building a real-world application from scratch.

The goal of this project is to provide a simple, understandable codebase for learning and extending ASP.NET Core applications — no over-engineering, no unnecessary abstraction.


📦 Features

This application includes a wide range of core and advanced web development features:

🔧 Core MVC Concepts

  • Controllers, Views, Models, and ViewModels
  • Areas for separating admin/user logic
  • View Components & Partial Views
  • Tag Helpers & Sections

🗃️ Database & Entity Framework Core

  • Code-first database creation
  • EF Core migrations
  • Seeding initial data
  • Full CRUD operations using EF Core directly (no repository pattern)

🔐 Identity & Security

  • ASP.NET Core Identity integration
  • User roles and access control
  • Secure authentication
  • Complex session handling

💡 UI & Front-End

  • Bootstrap 5 styling
  • jQuery for interactivity
  • Flash messages (success, error)
  • File & image uploads (single and multiple)
  • Image gallery with directory management
  • Client- and server-side validation (including custom)

🧠 Advanced Concepts

  • Asynchronous programming (async/await)
  • Project structure tips for scalability
  • Mixing JavaScript with C# views
  • Pagination for large data sets

🚀 Getting Started

Prerequisites

  • 🧠 Basic knowledge of C#
  • 🧰 Visual Studio 2022 (Community Edition is fine)
  • 🌐 General understanding of web development (HTML/CSS/JavaScript helpful)

Setup Instructions

  1. Clone this repository

    git clone https://github.com/Chiragj2003/CMSECommerce-main.git
    cd CMSECommerce-main
  2. Open the solution in Visual Studio 2022

    Install dependencies
  3. Open the Package Manager Console and run:

     Update-Package   
  4. Apply Migrations & Create Database

    Update-Database
  5. Run the application

Hit F5 or click the Run button in Visual Studio.

🎯 Learning Objectives

By studying this codebase, you'll learn how to:

  • ✅ Build and structure ASP.NET Core MVC applications
  • ✅ Use Entity Framework Core (EF Core) directly and effectively
  • ✅ Implement authentication and authorization
  • ✅ Work with Identity roles and sessions
  • ✅ Build scalable and maintainable web apps
  • ✅ Create reusable components and design a clean UI

👨‍💻 Author

This project was created by Chirag Joshi.

  • GitHub: Developed and maintained under the username Chiragj2003, this repository (CMSECommerce‑main) showcases a hands-on implementation of ASP.NET Core MVC with EF Core, Identity, session management, admin areas, and reusable ViewComponents. It's a solid learning foundation for building scalable and maintainable web applications.

  • LinkedIn: Connect with the author on LinkedIn at Chirag Joshi to follow their journey, explore other projects, or discuss web development, .NET technologies, and building clean‑architecture applications.


📚 What to Explore in the Code

Folder/File Description
Areas/Admin/ Admin dashboard logic and views
Models/ Domain models and view models
Data/ EF Core DbContext setup and database seeding
Views/ Razor views using layout, partials, and tag helpers
Controllers/ Application logic and request routing
wwwroot/ Static files: uploads, Bootstrap, jQuery, CSS/JS
ViewComponents/ Reusable UI components like menus and alerts

Happy coding! 🚀

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors