Setting Up CI/CD for a Node.js Application on a VPS

This guide provides a end-to-end reference for deploying Node.js applications to a Linux Virtual Private Server (VPS) automatically using GitHub Actions, PM2, and Nginx. 🏗️ Architecture Overview Step 1: VPS Initial Configuration 1. Install Node.js & PM2 Connect to your VPS via SSH and install the required Node.js runtime and PM2 globally: Bash 2. Set […]

Read More

test post

Read More

Installing WordPress on VPS

You can set up WordPress using your server’s public IP address now and bind your actual domain name later when you are ready. Here is the complete step-by-step guide to installing WordPress on Nginx + PHP-FPM using your IP address. Step 1: Install Nginx & PHP-FPM Run the following commands in your VS Code terminal […]

Read More

Installing WordPress on VPS

Adding WordPress alongside your Node.js apps on the same VPS is completely straightforward, especially since you already have Nginx handling reverse proxy duties. Nginx will cleanly route domain requests: sending your Node.js traffic to its respective internal ports and serving WordPress directly via PHP-FPM. Here is the cleanest way to set up WordPress alongside Node.js. […]

Read More

Hosting multiple Node.js applications on a single VPS

Hosting multiple Node.js applications on a single VPS while maintaining zero downtime, strong security, and automated CI/CD requires a battle-tested architecture. Here is the industry-standard architecture and best practices for setting this up cleanly. architecture Overview Rather than exposing every Node.js app on a public port directly, you route all traffic through a Reverse Proxy […]

Read More

SP24 BCS B Final Exam

Extend your existing Express.js, EJS, and Mongoose e-commerce application by implementing an On-Sale Products page (/onsale-products). This task tests your ability to query data via Mongoose, pass the full dataset to an EJS template, and use jQuery to manipulate the DOM so that only 10 products are visible at a time, complete with custom “Next” […]

Read More

SP24 BCS A Final Lab Exam

Objective: Extend your existing Express.js, EJS, and Mongoose e-commerce application by implementing a dynamic, real-time updated Sales Dashboard (/sales). This task will test your ability to work with template engines, layouts, Mongoose aggregation or queries, API endpoints, and client-side AJAX polling using jQuery. Problem Statement & Requirements You are required to add a new administrative […]

Read More

Quiz 3 SP26 SP24-BCS-A

Explain What is Express in Node and give examples how it handles requests with different http methods. give code snippets

Read More

SP26 Web Midterm SP24-BCS-A

Task: Modify your existing e-commerce landing page to include a “Featured Deals” section that pulls data dynamically.

Read More

SP26 Web Midterm SP24-BCS-B

Transform your static “Products” section into an interactive, touch-responsive Carousel (Slider) using your existing styled product cards.

Read More