17

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 a nutshell, 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 19+
  • Visual Studio Code

Creating our first DigitalOcean Droplet

I have used DigitalOcean for the last seven years, and I can say that it ...

Get React 18 Design Patterns and Best Practices, 4e - Fourth 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.