Deploy React-App with AWS Amplify

we all know that cloud services are the future and aws is one of the leading cloud service provider out there. Today we are going to deploy our react-app(or any SPA application) on AWS amplify.

Let’s Get started.

we will follow a step-wise procedur…


This content originally appeared on DEV Community and was authored by Ismail

we all know that cloud services are the future and aws is one of the leading cloud service provider out there. Today we are going to deploy our react-app(or any SPA application) on AWS amplify.
Alt Text

Let's Get started.

we will follow a step-wise procedure for the deployment of our react-app.

1.Go to terminal and create-react-app:-
Alt Text

2.After creating the react-app get inside the project folder and run the below command.

npm run build

the above command creates a new folder with "build" name inside your project folder as shown in below pic.

Alt Text

3.Now open .gitignore file in you project folder and remove /build

Before:-
Alt Text

After:-
Alt Text

4.Now upload code to your GitHub repository:-
Alt Text

commit changes

Alt Text

Now push the changes
Alt Text

check out the repository and make sure everythings is uploaded(build folder is important):-
Alt Text

Now let's get into AWS amplify

1.open AWS amplify console
Alt Text

Now click on get started and you will be redirected to:-

Alt Text

Now click on deliver and get started

2.Now you will be redirected the following page:-

Alt Text

Now click on Github and continue by giving access to aws amplify with your github account.

You will be redirected to the following page:-

Alt Text

select your git repository which you have uploaded before and click on next.

Now you will have to click on checkbox and type build in the project root folder and click next.

Alt Text

Now you will be redirected to following page:-

click on checkbox and click on next button

Alt Text

Now you will be redirected to following page:-
Alt Text

Click on save & deploy.

That's it!!

Now you will be redirected to the following page:-
wait for few minutes utill the process turns into green tick icons. As shown below:-
Alt Text

Now click on the link your website should be visible.

Alt Text


This content originally appeared on DEV Community and was authored by Ismail


Print Share Comment Cite Upload Translate Updates
APA

Ismail | Sciencx (2021-08-11T19:27:23+00:00) Deploy React-App with AWS Amplify. Retrieved from https://www.scien.cx/2021/08/11/deploy-react-app-with-aws-amplify/

MLA
" » Deploy React-App with AWS Amplify." Ismail | Sciencx - Wednesday August 11, 2021, https://www.scien.cx/2021/08/11/deploy-react-app-with-aws-amplify/
HARVARD
Ismail | Sciencx Wednesday August 11, 2021 » Deploy React-App with AWS Amplify., viewed ,<https://www.scien.cx/2021/08/11/deploy-react-app-with-aws-amplify/>
VANCOUVER
Ismail | Sciencx - » Deploy React-App with AWS Amplify. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/08/11/deploy-react-app-with-aws-amplify/
CHICAGO
" » Deploy React-App with AWS Amplify." Ismail | Sciencx - Accessed . https://www.scien.cx/2021/08/11/deploy-react-app-with-aws-amplify/
IEEE
" » Deploy React-App with AWS Amplify." Ismail | Sciencx [Online]. Available: https://www.scien.cx/2021/08/11/deploy-react-app-with-aws-amplify/. [Accessed: ]
rf:citation
» Deploy React-App with AWS Amplify | Ismail | Sciencx | https://www.scien.cx/2021/08/11/deploy-react-app-with-aws-amplify/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.