简体   繁体   中英

ASP.NET MVC and Web API in same project

I'm in the process of designing a website (ASP.NET MVC 5) initially that will feature a native mobile application down the road. I'd like to include ASP.NET Web API inside this project for the purpose of exposing services to this mobile application. Is it wise to mix these two items in the same project? Or would it be better if I create two separate projects altogether. The mobile app will be built with the Ionic framework + angular. Are there pros and cons to designing it this way?

Depends on what scalability you want to get. If it is a small project and limit number of users, you may do it in a single project. Otherwise, you might want to separate them so you could deploy them to different servers.

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