How to build a React website in AWS within 15 minutes
This tutorial will help you launch a simple personal or professional website hosted in AWS S3 and built using React. React is a Javascript library for building user interfaces. Let’s say you are still learning react and other technologies related to Web Design and you want a cost effective way of building and playing around with your own live website. The best way to achieve this is to host the Website in AWS S3 since it offers free tier usage for 12 months— 5 GB of Amazon S3 standard storage, 20,000 Get Requests, and 2,000 Put Requests. This means that you will be paying less than a dollar per month until your website starts to get some serious traffic.
Step 1: Create a react application locally
To create a react application, you have to install node and npm first. To install both:
If you are using Mac and Homebrew installed, then run brew install node
Other options for Mac OS: https://nodejs.org/en/download/package-manager/#macos
Windows: https://nodejs.org/en/download/package-manager/#windows
Downloads: https://nodejs.org
Once the installation is complete, you can create a new application by running:
npx create-react-app my-app
cd my-app
npm start
Once this is complete, it will open up your browser with address localhost:3000
. Any changes you make to your react app code will be reflected…