O'Reilly logo

JavaScript by Example by Dani Akash S

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Video Call in action

You got the application ready, so let's test it locally. First, generate the production build for your app. You have already done this before in the Event Registration app. You need to set NODE_ENV=production in your .env file.

After that, in your project root folder, kill Webpack dev server and run the npm run webpack command. It should generate the production builds for your JS and CSS files. The filename will be available in the dist/manifest.json file. Include those CSS and JS files in your index.html page.

Now, run http-server in your project root folder. It should print two IP address. Open the one starting with 192 in your browser. This IP address is accessible to all the devices in your LAN, unless you have blocked ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required