Skip to content

Instantly share code, notes, and snippets.

View sidiqaqi's full-sized avatar

Sidiq Aldi sidiqaqi

View GitHub Profile
@sidiqaqi
sidiqaqi / local-proxy.md
Last active May 13, 2025 02:46
Simple Express Server Proxy to running local development Laravel and React APP.

Local Proxy

This is a simple local proxy server built with Node.js and Express. It serves two main purposes:

  1. API Proxy: Routes API requests from /api to a Laravel backend running on http://localhost:8000, ensuring the /api prefix is always included.
  2. Frontend Proxy: Proxies all other requests to a React development server running on http://localhost:8080.

The server listens on http://localhost:3000.

RUN