Pregunta

Its been about a month since I started using AngularJS. I used to write my codes in SublimeText2 but i wanted to use WebStorm since it claimed to be more AngularJS friendly. I wrote a simple Hello World app and tried to run it but i couldn't get any hint of how to do it. I also don't have any knowledge about Node.js.

  • Do i need Node.js to run app on WebStorm?
  • Is Node.js a server?
I tried going through tutorials on WebStorm page and also read few articles on Node.js but couldn't understand it. Can anyone explain it in a simple and understandable way?

¿Fue útil?

Solución

You can open your HTML+JS application in the selected browser in WebStorm by clicking on the browser icon on the top right corner of the editor tab with index.html file opened (or any other html file you'd like to open in browser). enter image description here

The same action could be done from the file context menu: Open in - Browser. WebStorm will automatically start built-in web server for your convenience.

Note that you still can go to your project folder and execute your particular HTML file from there, the same way you would do it with the text editor.

Read more on working with AngularJS in WebStorm in this blog post.

If you have back-end in Node.js for your app, then you, of course, need Node.js installed. To run your node web app you need to create Node.js run configuration. More on it here.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top