I'm a Developer, a Certified Cloud Practitioner, and a graduate of the JRS Coding School's Full-Stack Development Program.
Node Version Manager (NVM) commands:
node -v > .nvmrc
- Create a .nvmrc file with the current version of node installed on your machine.
nvm use
- Use the version of node specified in the .nvmrc file.
nvm install 16
- Install the specified version of node i.e., 16.
nvm alias default 16
- Set the default version of node to 16.
MySQL commands:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewStrongP@ssw0d!';
- Update root password anytime from MySQL shell.
mysql -u root -p
- Login to MySQL shell command line.
CREATE DATABASE <database_name>;
- Create a new database.
USE <database_name>;
- Use the specified database.
Setup AWS SSL Load balancer:
-
Create an EC2 instance.
-
Add git to the EC2 instance and clone the backend repo.
-
Install node, npm and pm2.
-
Set up EC2 to respond to HTTP on "/".
-
Create a target group that will connect to the EC2.
-
Define a security group that should accept traffic from the ALB security group.
-
Create an application load balancer.
-
Connect the load balancer to the target group.
-
Set up health checks on HTTP port 80.
-
Register a domain with Route 53 and use a subdomain for your backend.
-
Add an AWS SSL certificate to your application load balancer.
-
Point the domain to the ALB.