There are many way to do it. Some of them are more efficient that others. Here are some paths to explore.
- Create EC2 instance
- ssh in EC2
- Install everything (git, node, mongo)
- Open the inbound to the world
- Create a route53 and link it to you DNS
- Running a full-stack app on AWS | LinkedIn Learning, formerly Lynda.com
- Deploying the Todos app | FullStack JavaScript: Starter Guide
- Dynamic Whole Site Delivery with Amazon CloudFront | Networking & Content Delivery
- The perfect hosting for your react app 👌
- How to build and deploy a beautiful personal portfolio site with AWS S3, Route53, and CloudFront ?
- How To Build a React GraphQL Static Site Served From AWS CloudFront
- A Guide to Deploying your React App with AWS S3 - DailyJS - Medium
- Deploy a Node.js Web App
- S3 static front end + EC2 API Backend, is there actually a way? : aws
- Full Stack Hosting in AWS – Part 1 – Brian Young
- How to deploy a Node.js app to the AWS Elastic Beanstalk
Use links above
It seems code invasive
npm install -g @aws-amplify/cli
amplify configure
### Then in your project :
amplify init
amplify add api #this will create your API as AWS Lambda functions exposed through Amazon API Gateway)
amplify add hosting #this will create the Amazon S3 bucket for hosting and the cloudfront distribution)
amplify push #to create all this on your AWS account for you