Deploying React Project on Netlify

Deploying React Project on Netlify

In order to deploy your react project onto Netlify, you should have two things

  • Working React Project

  • Netlify account

You can create one by going to the netlify site

Netlify

Landing Page of Netlify

image.png

Building and deploying the project

  • Building the react project

To deploy your project, you need to build your project.

Following commands need to run in order to build the project:

npm run build
serve -s build

You will now have a build folder in your solution and you are ready to deploy the application.

  • Deploying on netlify

Go to the site's page.

image.png

Drag your build folder into the section of the site

Deploy.png

It will take 2-3 minutes and your application will be deployed.

Post-deployment, you will be provided with the application URL.

image.png

Demo URL:

amalreact-app.netlify.app