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
// vite.config.js
export default {
base: "/bookmark/",
// other config
}
<BrowserRouter basename="/bookmark">
{/* Your routes */}
</BrowserRouter>
npm run build