Deploying to Production

Now that you have completed your first React application, it is time to learn how to deploy it to the world. For this purpose, we will use the cloud service called DigitalOcean.

In this chapter, you will learn how to deploy your React application using Node.js and nginx on an Ubuntu server from DigitalOcean.

In this chapter, we will cover the following topics:

  • Creating a DigitalOcean Droplet and configuring it
  • Configuring nginx, PM2, and a domain
  • Implementing CircleCI for continuous integration

Technical requirements

To complete this chapter, you will need the following:

  • Node.js 12+
  • Visual Studio Code

Creating our first DigitalOcean Droplet

I have used DigitalOcean for the last six years and I can say that it is ...

Get React 17 Design Patterns and Best Practices - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.