Practical guides, tutorials, and insights from years of building web and desktop applications. Check out code examples you can actually use!
Spin-up a quick web server in Javascript
Use these two quick ways to get a webserver up and running from any folder. 1. Use http-server Install http-server. npm install http-server -g Navigate to any folder where you need a quick web server and start server. cd client/dist http-server You can even proxy requests to a back-end server where required. http-server -P localhost:3333 The above command will start a server at port 8080, and any requests to back-end (e.g /api) is proxied to localhost:3333 if the same is not resolved. ...