Launch Localhost without Code Editor Extensions | Node Serve Localhost

Published: 01 January 1970
on channel: WebStylePress
324
4

If you use Visual Studio Code, you probably use an extension to launch a development local server for static & dynamic pages. For example 'Live Server', 'Live Server Preview' or any other extension for Visual Studio Code. As a web developer, frontend developer or software engineer, I am sure you use NodeJS. If you use Node, you do not need any VSCode extension to launch 'local server'.

You can install npm package 'serve' globally for Yarn or npm and use that to launch your project at localhost. Open your terminal and use command:
yarn global add serve

I use yarn mostly, instead of npm, so I am installing 'serve' as a global package for yarn package manager. You can also use your code editor terminal for these commands. To verify package installation, you can view globally installed packages for yarn by using following command:

yarn global list

Now that it's installed globally for yarn, you can open terminal in your project folder and use following command to launch your project or page at localhost or local server.

serve

You can also use following npx command:

npx serve

Your project will now be served at localhost using port number 5000.
http://localhost:5000

To stop local server, use CTRL+C keyboard shortcut.

https://www.npmjs.com/package/serve

✅ How To Hide / Protect JavaScript Code - Techniques and Tools
   • How To Hide / Protect JavaScript Code...  
✅ React JS UNDEFINED Solution | Reactjs Learning | Learn ReactJS & JavaScript Debugging Fast
   • React JS UNDEFINED Solution | Reactjs...  
✅ Calculate Sum or Total from Values in Array & Array Object | Learn JavaScript | Reduce Method
   • Calculate Sum or Total from Values in...  
✅ Get URL Parameters in JavaScript | URLSearchParams
   • Get URL Parameters in JavaScript | UR...  
✅ DIV to PDF, Iframe to PDF using JavaScript Only (with CSS & Images Support)
   • DIV to PDF, Iframe to PDF using JavaS...  
✅ How To UnMinify JavaScript Minified Files Easily | Decrypt Complex JavaScript Code
   • How To UnMinify JavaScript Minified F...  
✅ Toggle Class in Vanilla JavaScript | Learn JavaScript
   • Toggle Class in Vanilla JavaScript | ...  
✅ How to Execute a JavaScript File by using NPM
   • How to Execute a JavaScript File by u...  
✅ Get User's Location (Country, State, City) with Free Unlimited API Access | PHP & JavaScript
   • Get User's Location (Country, State, ...  
✅ Replace jQuery with Vanilla JavaScript Code Easily | jQuery vs JavaScript
   • Replace jQuery with Vanilla JavaScrip...  
✅ Toggle in Vanilla JavaScript
   • Toggle in Vanilla JavaScript | Pure J...  
✅ MINIFY JAVASCRIPT FILES & FOLDERS in Multiple Ways (Command Line & Code Editor)
   • MINIFY JAVASCRIPT FILES & FOLDERS in ...  
✅ JavaScript vs jQuery | Difference between JavaScript and jQuery
   • JavaScript vs jQuery | Difference bet...  
✅ JavaScript Variable Redeclare & Reassign | VAR vs LET vs CONST | Practical Examples
   • VAR vs LET vs CONST | JavaScript Vari...  

Thank You!
👍 LIKE VIDEO
👊 SUBSCRIBE
🔔 PRESS BELL ICON
✍️ COMMENT

Channel:    / webstylepress  
Website: https://www.webstylepress.com
FaceBook:   / webstylepress  
Twitter:   / webstylepress  
GitHub: https://github.com/webstylepress
#localhost #node #serve #js #javascript #webdevelopment #webstylepress #nodejs


On this page of the site you can watch the video online Launch Localhost without Code Editor Extensions | Node Serve Localhost with a duration of hours minute second in good quality, which was uploaded by the user WebStylePress 01 January 1970, share the link with friends and acquaintances, this video has already been watched 324 times on youtube and it was liked by 4 viewers. Enjoy your viewing!