How to access your GCP VM using your local machine

ssh -i ~/.ssh/id_rsa [email protected]

# host : present at end of ur public key
ssh -i ~/.ssh/id_rsa host@VMs-IP

# You are now into ubuntu machine's terminal

How to install node on Ubuntu

How to Install Node.js on Ubuntu | DigitalOcean

# Step : 1
curl -o- <https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh> | bash

# Step : 2
source ~/.bashrc

# Step : 3
nvm install node

# Step : 4
git clone <https://github.com/RitikaxG/Bookmark-Responsive.git>

# Step 5
npm install

# Step 6
cd Bookmark-Responsive

How to install nginx

sudo apt update
sudo apt install nginx
  1. Update vite.config.js for each app
// vite.config.js
export default {
  base: "/bookmark/",
  // other config
}
  1. Update <BrowserRouter> in main.tsx
<BrowserRouter basename="/bookmark">
  {/* Your routes */}
</BrowserRouter>
  1. Build both apps
npm run build
  1. Copy the builds to Web Directory