简体   繁体   中英

AngularJS - MVC ASP.NET Directory Structure

This is more of a general inquiry. I am looking to start a personal website as a side project using ASP.NET MVC 5/WebAPI. For my front end (Javascript) I want to use AngularJS. I have been reading tons of articles and they all suggested the best way to structure your files is to put the html, service/controller all together in the same folder. I am not sure if this is best practice for ASP.NET MVC.

What are some things that you guys can recommend to achieve clean and reusable code.

Thanks

This example shows how to create a simply web application using angularjs, mvc and RESTful Web Service, I named it is “manage customer”. List of features:

  • List customer
  • Edit customer
  • Create new customer
  • Delete customer

List of projects of “manage customer” application:

  • CustomerEntities (EntityFramework 6.0.0.0)
  • CustomerDAL (c# classes)
  • CustomerBLL (c# classes)
  • CustomerAPI (RESTful web service)
  • CustomerUI (AngularJs, MVC)

Here is solution structure:

在此处输入图片说明

More detail and source here AngularJs MVC

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM