ASP.NET MVC folder structure for e-commerce project

I got a little confused in the folder structure for my project and grouped them into Controller. The project is e-commerce. I have pages like

Home, About, Contact, Category Menu and Sub-Category List Page, ProductList, ProductDetail, ShoppingCart, CartSummary, Checkout

User management Edit profile, Orders, management of login information.

Administrator Product management (insert, update, delete, upload images, add descriptions, etc.), Category management, order management, etc.

Should I create areas ?. How to make a clean folder structure.

+3
source share
3 answers

My suggestion:

  • HomeController:
    • ( )
  • CategoryController:
    • ( - )
  • ProductController:
    • ( productlist-html usercontrol ),
  • CartController:
    • ShoppingCart ( )
    • ...
  • UserController:
    • ( : )
  • ( , )
    • UsersController
    • OrdersController
    • ProductsController
    • SettingsController
    • MailingsController
    • ...
+4

- . , . , , , , css, javascript ..

, , -, , -, jQuery ..

+1

, ZippyV . , IoC .., ( ) , .

In addition to this, I would leave the admin section until you have determined all the object / data structures that you need for the public site, otherwise you will eventually modify the model object and need to be updated in several places, there is potentially no gain (since it can change again :-)).

+1
source

Source: https://habr.com/ru/post/1777284/


All Articles