Node.js Tools For Visual Studio
So, I started by installing node and just working in Visual Studio as though my node project was a web site. It works, but it isn’t pretty. But it did get me familiar with some basic concepts like using the node package manager (npm) to install what I needed to get Istanbul running. For those of you who aren’t familiar with npm, it is basically NuGet for node.js.
For those of you who are interested, I used the instructions here for getting Istanbul working locally. They should probably be updated because the example there doesn’t have a good configuration example. I filled in the rest of what I needed to know from the Karma site.
Node for Visual Studio
So then I had heard that work was being done on a plugin for Visual Studio 2013 that would allow me to work on Node projects from within Visual Studio. I found out about this first from Scott Hanselman’s blog.
So I went to the plugin site and got the download and installed it. This is all pretty straight forward. Don’t forget, you’ll ALSO need to install node. So, don’t forget that step.
OK. Now that you have the NTVS installed (that’s what they call the plugin) what do you have?
Well, you have several new project templates that you can use. That’s what.
Node Package Manager in Visual Studio
Or install other node packages:
.npm install yourPackageNameHere
Even as I’m writing this, I’m seeing that there is a whole lot more here than I’m actually telling you now.
Starting a New Project
Now, the best way of learning something is by creating some kind of product. Even if it is for your own use. So, the next thing I did was to try to create a project. I have a specific project in mind that should use MongoDB for the database (I’ve been meaning to learn NoSQL for a while now) and since Express seems to come with NTVS, I guess I’ll use that for my web server. Oh and Angular for the front end.
Since I was creating a web site, I thought, I should create a new web project that uses node. In fact, it shows up in the list of web sites types that you can create. However, I got an error when I did that, and I don’t see anything in the documentation that says I should be able to use those templates or that I need anything extra to use them.
However, if you use the project options, you can create a web application. I decided going with newer is better than older, so I’ve created a “Basic Node.js Express 4 Application”.
The Fun Is Just Beginning
And now, this is where the fun begins. Where’s my HTML? What’s all this “template” stuff? And how do I install Angular? Or do I do that manually since it isn’t a server side thing?
So much to learn. But, that’s for another post.
Other places talking about Node.JS Tools For Visual Studio
- Building Node.js Applicatoin in Visual Studio (MEAN stack)
- Node.js Development in Visual Studio
- Node.js for .NET Developers (Developer Reference)
Other post in Node.js
- Node.js Tools For Visual Studio - April 2nd, 2015
Like this Article? Subscribe to get every article sent to your email.
- 13 April 2015 at 3:04am
- Automate the Planet
[…] Tools Guy How to Convert an SQL Server Data into JSON ...