Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding existing Node Js project to Existing .Net Solution

Updated. Updated the question since it looks little ambiguous and not the answer i was looking for.

We have a huge .NET application running on MVC and angular. It has multiple projects under the main solution. .Looks something like this

We also have a replica of that application in Node.js for front end developers. It looks something like this : enter image description here

What happens is - Front end developers make changes in Node js solution (like js or .less files or controller) - make changes and move those changes to .Net solution which is the actual live project.

Off late - we have issues with developers working with two different solutions (Node and .NET) and keeping two copies of assets everywhere. We ultimately decided to combine them and bring the whole Node.js application into ours .NET Solution as 6th project.

Something like this enter image description here

Wondering if anyone has previously done so - adding a .NET application with existing Node.js application. If so any pros and cons to consider. Some points to note - the Nodejs project and .Net project are completely independant of each other. The idea is to consolidate the applications so that We can either run the .net application or UI application from single solution.

Eventually, we will consolidate all the assets to just one project so that - we dont have to do duplicates.

Also, would appreciate any links where I can see how to start merging these two applications.

like image 810
Night Monger Avatar asked May 06 '17 23:05

Night Monger


People also ask

How do I run an existing node JS project in Visual Studio?

If you have Visual Studio installed already: In Visual Studio, go to Tools > Get Tools and Features. In the Visual Studio Installer, select the Node. js development workload, and select Modify to download and install the workload.

How do I open an existing node JS project in Visual Studio code?

Open the project folder in VS Code. Select Node. js when prompted for the application platform.

Can I use node js with ASP NET?

Node. js is a JavaScript framework created for server side scripting. So if we compare it with other programming languages such as ASP.NET, the language is used for programming JavaScript for Node.

Is .NET the same as node JS?

NET is an open-source web app framework, whereas Node. js is an open-source JS runtime environment that can execute JS code on the server side. They are two famous technologies that are capable of effective scaling, speeding up and empowering of the development process.


1 Answers

You definitely want to look at JavaScript Servcies. Building Single Page Applications on ASP.NET Core with JavaScriptServices.

Made for .NET Core, but you can run .NET Core on Full .NET Framework, which should make it easier to migrate to.

like image 168
Andrii Litvinov Avatar answered Oct 20 '22 09:10

Andrii Litvinov