Access a web page through IP and port no (VS2013, HTML5, AngularJS)
-
I am new to web development and started with HTML5 and AngularJS. Listened to 'AngularJs Patterns clean code' by Jon Papa on Pluralsight. Downloaded the sample app 'modular' and created a small SPA following the sample app. The app is created using Visual Studio 2013 ASP.Net Empty website project template. The directory structure is as follows in Visual Studio 2013. -- Solution 'Tools' ---------- 'Tools' - Project ------------------- bower_components -------------------------- angular : other js files at the same level ------------------- src ----------------------- client ---------------------------- app ---------------------------- index.html <<<===== Project Properties settings: ----------------------------- Project properties -> web -> Start Action -> specific page -> src/client/index.html Servers -> IIS Express -> Project Url: http://localhost:23263/ Running project using F5, opens a webpage with Url: http://localhost:23263/src/client/index.html#/ The page loads as expected. Questions: Q1: I would like to open the page with reference to path of index.html such as http://localhost:23263. What setting needs to done to achieve above thing? Q2: For sample application 'modular' I need to setup node.js and gulp and run the gulp server which listens to a specific port and when I type http://localhost:port_no, the index.html page is opened. Also, I am able to access the page on another device using the IP and port no. How can I achieve this? I didn't publish my website to achieve this, just started the node server. Looked a similar tutorial for developing an angular app using visual studio 2013, unable to achive above thing. http://jaliyaudagedara.blogspot.in/2014/06/creating-empty-aspnet-project-powered.html Thanks in advance!
Praveen Raghuvanshi Software Developer