Skip to content

Step 2 - Build your React frontend

Course: Frontend Deployments on AWS - chapter 2

💡 This approach will not work for frameworks that use Server side rendering (like Next.js) This will work for basic React apps, HTML/CSS/JS apps

Terminal window
cd /link/to/your/react/project
Terminal window
npm run build
Terminal window
npm i -g serve
serve

At this point you have basic HTML/CSS/JS code that you can deploy on the internet.

You might be tempted to host this on an EC2 instance, but that is not the right approach

The next slide explains why