DEV Community

Cover image for Learn different ways of deploying your React app in the cloud in 2023 [Part 1]
Lionnel Lubangi Mohamed
Lionnel Lubangi Mohamed

Posted on

Learn different ways of deploying your React app in the cloud in 2023 [Part 1]

In this serie of articles, I will show you more than 9 ways of deploying your react application for free. For this tutorial, we are not going to dig far into the process of creating an application, rather, we will focus on the main topic which is the deployment. I will provide you with a GitHub link that you could clone from my repository and then follow along with me. But, you don't need to do that, if you have any react application on your local machine, open it in the editor and follow the different steps below:

Summary :

  1. Vercel 2.1 AWS Amplify 2.2 AWS S3 + CloudFront 3.3 AWS EC2
  2. Firebase
  3. Netlify
  4. GitHub Pages
  5. Heroku
  6. Surge
  7. Render
  8. GitLab Pages

Prerequisites:

Let's get started

1 Vercel

Steps to follow:

  1. Open the project cloned in your IDE(VsCode),
  2. Open the terminal and install the dependencies:
npm install
Enter fullscreen mode Exit fullscreen mode
  1. Start the project :
npm start
Enter fullscreen mode Exit fullscreen mode
  1. You should see the app in your browser :

Image description

Vercel is a revolutionary serverless deployment service designed for React, Angular, Vue, and other JavaScript libraries. You can easily import projects from GitLab or Bitbucket with Vercel. Automatic SSL is one of the many cool features it offers.

To deploy Vercel, create a new account. You can quickly log in using OAuth.

Image description

next click on authorize:

Image description

At this point, you should see a popup as shown in the image below:

Image description

Select your GitHub repository and click on install

Image description

In the next step, click on import to import your project :

Image description

Here, you can leave the default selection, but if you created your app with a framework other than CRA, then choose the appropriate framework in the dropdown menu.

Then click on Deploy:

Image description

You will see that Vercel is processing, wait until it finishes:

Image description

And my application is ready :

Image description

Click on continue :

Image description

Now you should see your App with two links:

The first is your domain, the second is the link to your GitHub repository.

And if I click on the first link, my App will open in a new tab, here's the screenshot:

Image description

Congratulations, you have finished the first part of this Tutorial, i will continue tomorrow with AWS.

Preview the app

Thank you for reading!

Lionnel Lubangi Mohamed, Developer.

Firebase
Netlify
GitHub Pages
Heroku
Surge
Render
GitLab Pages

Top comments (0)