Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Build a React 360 app for production


    After creating a successful React 360 app we would like to build it for production environment so that we can release it to the world. In this lesson we are going to learn how to package a React 360 application for production deployment.

    When running the server for build, if you don’t have http-server downloaded, instead of running the command http-serve build, run it with npx with the command npx http-server build.



    Become a Member to view code

    You must be a Pro Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    orLog In




    Instructor: We have finished our React physics application. We would like to build it and enter this into production. In order to do that, I add NPM on the bundle inside of your product directory. This is going to take a while.

    Once this is done, we're going to get a new build folder inside of our product directory. If you have static assets inside of our application, and we do, we need to copy static assets to the build directory.

    Once this is done, we can run our production build. I'm going to create a new HDP server inside of the build directory. I'm just going to copy this URL to the browser. We can see the result over here. We have a production version of our application.

    If you take a look inside of the console, we're going to see that it is a production build because development of the warning are off, and performance optimizations are on. We can safely go ahead and deploy this build to a production environment.