Hosting your app starts with creating a VM on Azure. Here’s how to do it:

Go to the Azure Portal and click Create a Resource.

Select Virtual Machine and choose a configuration (e.g., Ubuntu 24.04, Standard B1s).

Configure networking, storage, and SSH keys for secure access.

Once the VM is created, note its public IP address (e.g., 102.37.21.212).

Use SSH to connect to the VM:

bash
Copy
ssh -i azureuser@
This VM will serve as the hosting environment for your app.

  1. Uploading Files to the VM Without Docker To deploy your app without Docker:

Transfer Files:
Use scp to copy your frontend and backend files to the VM:

bash
Copy
scp -r -i azureuser@:
Example:

bash
Copy
scp -r -i ~/keys/uvotakeV_key.pem ~/Desktop/frontend [email protected]:/home/azureuser/frontend
Install Dependencies:
SSH into the VM and install dependencies:

bash
Copy
cd ~/frontend
npm install
Build and Serve:
Create a production build and serve it:

bash
Copy
npm run build
serve -s build -l 3000
This approach avoids Docker and directly deploys your app to the VM.