How to deploy React js web application to server on linux centos.

0
149

This tutorial explains step by step guide How to deploy React js web application to server on linux centos.

Steps to Deploy react js web app on EC2 centos

  1. Install Node // see tutorial to install it
  2. Install git
    sudo yum install git
    git –version
    Run command to clone repo to your server
    git clone giturl

OR

  1. Copy the project files to your directory
  2. Install yarn package manager
    npm install -g yarn
  3. Install nodemon if required
    npm install -g nodemon
  4. Go to your project directory and then run following command
    yarn
  5. Run the client
    yarn client
  6. Run the server
    yarn server

LEAVE A REPLY

Please enter your comment!
Please enter your name here