MERN Stack on Amazon Linux 2 (X86-64) with support by Hfami
AWS-Marketplace
https://aws.amazon.com/marketplace/pp/prodview-dxfunugbj6y4a
Usage Instructions
*Note
Please replace the instance ID with the actual instance ID of your running EC2 instance, and the Public IP your actual public DNS address.
1.React
Go to the my-react-app directory:
-
cd my-react-app
-
Launch React platform
The console prints the following message:
Open a browser:
Visit http://{public-ip}:3000 to view the application.
The following React logo is displayed:
Return to Command line:
Ctrl + C
2.Express
Go to the my-express-app directory:
cd my-express-app
Start Express:
node index.js
In your browser confirm install by going to your IP address: http://Public IPv4 address:3000
Display the following information:
Hello World!
3.Related commands
- To check nginx status: `sudo systemctl status nginx`
- To start nginx: `sudo systemctl start nginx`
- To stop nginx: `sudo systemctl stop nginx`
- To restart nginx: `sudo systemctl restart nginx`
- To check mongod status: `sudo systemctl status mongod`
- To start mongod: `sudo systemctl start mongod`
- To stop mongod: `sudo systemctl stop mongod`
- To restart mongod: `sudo systemctl restart mongod`
- To start nginx: `sudo systemctl start nginx`
- To stop nginx: `sudo systemctl stop nginx`
- To restart nginx: `sudo systemctl restart nginx`
- To check mongod status: `sudo systemctl status mongod`
- To start mongod: `sudo systemctl start mongod`
- To stop mongod: `sudo systemctl stop mongod`
- To restart mongod: `sudo systemctl restart mongod`