Frontend

Simple HTTP Server for static HTML

npm install -g http-server

This will install http server node package globally on your PC.

After installation, you can run command http-server

http-server -c-0 ./dist/spa-project

This will run your SPA built app in local IPs:
127.0.0.1:8080, localhost:8080, 192.168.1.126:8080, 10.2.34.25:8080

So you can access to your APP from local and other PCs as well.

Especially, PWA does not work on development environment. For testing PWA, you can run by using http-server , PWA will works well.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *