Skip to main content

Posts

Showing posts from May, 2025

The Complete Guide to Code Quality and Coding Standards

The Complete Guide to Code Quality and Coding Standards The Complete Guide to Code Quality and Coding Standards Building Better Software Through Better Practices Published: May 27, 2025 | Reading Time: 15 minutes | Category: Software Development Table of Contents Introduction to Code Quality Why Code Quality Matters The Five Pillars of High-Quality Code Language-Specific Coding Standards Universal Best Practices Essential Tools and Automation Team Collaboration Practices Implementation Strategy Advanced Techniques Real-World Case Studies Future of Code Quality Conclusion Introduction to Code Quality In the rapidly evolving world of software development, the difference between good code and great code often determines...

PUSH YOUR LIMITS: The GOAT Motivation Blog

Push Your Limits - GOAT Motivation Blog Push Your Limits Unlock the greatness within. Build your mindset. Execute your vision. 🚀 Manifestation Starts with Clarity Write your goals in a diary – this increases your chances of achieving them. Don’t sleep on your ideas. Act on them quickly. Clarity comes from action , not overthinking. Planning is good, but implementation is the game changer. 📈 Growth Mindset: Mess Up to Level Up Failure is inevitable – accept it and grow from it . Success doesn’t come from the first try. It’s about repeated efforts . Every mistake teaches something. Reflect, learn, and move forward. Don’t be scared to experiment. You have time to fail, learn, and rebuild. 🤝 You Can’t Do It Alone Find a mentor or guide to shorten your learning curve. Build a team that aligns with your passion and vision. Learn t...

🌐 How to Host Multiple React Projects on One VPS Using Subdomains (Nginx + PM2)

🌐 How to Host Multiple React Projects on One VPS Using Subdomains (Nginx + PM2) Already running one app on your VPS and want to host another under a different subdomain like admin-abhinav.rohatech.site ? Whether it's a second React or Node.js app, this guide walks you through the full setup using Nginx and PM2. 🔧 Step 1: Add DNS Record in GoDaddy Log in to your GoDaddy account. Go to the DNS settings for your domain rohatech.site . Click Add Record and add the following: Type Name Value TTL A admin-abhinav Your VPS IP address 1 Hour This connects admin-abhinav.rohatech.site to your VPS. 📁 Step 2: Upload or Clone Your Second App ssh root@your-vps-ip cd /var/www git clone https://github.com/your-second-app.git admin-app cd admin-app npm install npm run build Alternatively, upload it from your local machine using SCP: scp -r /path/to/your-app root@your-vps-ip:/var/www/admin-app ⚙️ Step 3: Run the Second App on a Different Port Use PM2 and a diffe...

🌐 How to Host Multiple Projects on One VPS Using Subdomains (admin-abhinav.rohatech.site)

🌐 How to Host Multiple Projects on One VPS Using Subdomains (Nginx + PM2) Already running one app on your VPS and want to host another under a different subdomain like admin-abhinav.rohatech.site ? Whether it's a second Next.js project or any Node.js app, this guide will walk you through adding multiple subdomain apps on a single server using Nginx and PM2 . 🔧 Step 1: Add DNS Record in GoDaddy Log in to GoDaddy . Go to the DNS settings for your domain rohatech.site . Click Add Record . Add the following DNS record: Type Name Value TTL A admin-abhinav Your VPS IP address 1 Hour This connects admin-abhinav.rohatech.site to your VPS. 📁 Step 2: Upload or Clone Your Second App SSH into your VPS and place your second app in a new directory: ssh root@your-vps-ip cd /var/www git clone https://github.com/your-second-app.git admin-app cd admin-app npm install npm run ...

🌐 How to Point a GoDaddy Subdomain to Your VPS (With Nginx + SSL)

🌐 How to Point a GoDaddy Subdomain to Your VPS (With Nginx + SSL) Hosting your app on a VPS is a great step toward full control and performance. If you’ve already deployed your app (like a Next.js app ) on a VPS and want to connect it to a subdomain like abhinav.rohatech.site , here’s a complete guide to help you get it done. 🔧 Step 1: Add a Subdomain in GoDaddy DNS Log in to GoDaddy and go to your domain dashboard (e.g., rohatech.site ). Click DNS or "Manage DNS". Scroll down and click Add under DNS Records. Add the following A record: Type Name Value TTL A abhinav Your VPS IP address 1 Hour This points abhinav.rohatech.site to your VPS server. 🖥️ Step 2: Configure Nginx on Your VPS SSH into your VPS server and create a new Nginx configuration file for your subdomain: nano /etc/nginx/conf.d/abhinav.rohatech.site.conf Paste the following Nginx con...

How to Deploy a Next.js SSR App on MilesWeb VPS (AlmaLinux 8.10)

🚀 How to Deploy a Next.js SSR App on MilesWeb VPS (AlmaLinux 8.10) If you're building a Next.js SSR (Server-Side Rendering) app and want to host it on your MilesWeb VPS with AlmaLinux 8.10 , this guide is all you need. Follow these clear steps to get your project live and production-ready. 🛠️ Prerequisites VPS with AlmaLinux 8.10 (MilesWeb) Root or sudo access to the server Your Next.js project (with app/page.js structure) Domain (optional but recommended) 🔐 Step 1: Connect to Your Server ssh root@your-server-ip Update your system: dnf update -y 📦 Step 2: Install Node.js and Git Install Node.js LTS (e.g., v18): curl -fsSL https://rpm.nodesource.com/setup_18.x | bash - dnf install -y nodejs Check versions: node -v npm -v Install Git if needed: dnf install git -y 📁 Step 3: Upload or Clone Your Project Option 1: Clone from GitHub cd /var/www git clone https://github.com/your-repo.git my-next-app cd my-next-app Option 2: Upload fr...