Reputation: 7197
So I'm going to be building two things. The first is a database-driven collection of RESTful web services. The second is a user-facing web application which accesses those services.
I have to do this all in Visual Studio 2010, in MVC2 / C#, for deployment to an IIS6 + SQL Server 2005 environment. I'm not terribly familiar with VS, nor MVC2, nor any of the attendant development and debugging tools.
So, my question is this: How should I structure all this to make life easiest on myself in terms of concurrently developing both pieces? I need to be able to deploy the two pieces to separate servers, but I want to be able to easily test both of them simultaneously on my development machine. Do I make two separate projects? Or is there a way to build a single project with multiple solutions, which can be tested at the same time?
Any advice would be much appreciated.
Thanks!
Upvotes: 0
Views: 140
Reputation: 1039298
You could have a single solution containing both web projects for the REST service application (WCF?) and the ASP.NET MVC application and then run them simultaneously using the Visual Studio development server by configuring multiple startup projects:
This will allow you to test/debug them simultaneously.
Another possibility is to use the newly released IIS Express to host both applications (you need to install VS 2010 SP1) which is the solution I would recommend you.
Upvotes: 2
Reputation: 676
I suggest you follow the NerdDinner tutorial. This sample MVC2 application follows the suggested pattern for developing MVC2 web applications that use services.
http://www.asp.net/mvc/tutorials/introducing-the-nerddinner-tutorial
Upvotes: 1