NodeJS Setup in HTTP Server or Local Server

NodeJS Setup in HTTP Server / Local Server Step 1 - Download and Install NodeJS
download the latest stable release of NodeJS from https://nodejs.org
Step 2 - Install http-server package from npm Open command prompt / command window and enter the following
npm install -g http-server
Step 3 - Start web server from the directory
cd \projects\angular-form-example
Step 4 - Start server with following command:
http-server
You should see something like D:\project\angular-form-example>http-server Starting up http-server, serving ./ Available on: http://http://70.35.195.158:8080 http://127.0.0.1:8080 Hit CTRL-C to stop the server Open your browser and enter the following address http://localhost:8080

Share this

Related Posts

Previous
Next Post »

Pageviews from the past week