Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

Latest commit

 

History

History
37 lines (23 loc) · 1.62 KB

File metadata and controls

37 lines (23 loc) · 1.62 KB

🌐 API Gateway

🚦 Build Status

main

Build and Test API Gateway

dev

Build and Test API Gateway

This service is the single entry point for all client requests in the TechTorque 2025 system. It is responsible for routing, authentication, rate limiting, and enriching requests.

🎯 Key Responsibilities

  • Request Routing: Maps incoming URL paths (e.g., /api/v1/vehicles) to the correct internal microservice (e.g., vehicle-service).
  • Authentication: Validates JWTs for all protected endpoints.
  • Header Enrichment: Injects X-User-Subject and X-User-Roles headers into requests after successful authentication.
  • CORS: Manages all Cross-Origin Resource Sharing policies for the frontend application.

⚙️ Tech Stack

Go Docker

  • Language: Go
  • Router: chi/v5
  • JWT Library: golang-jwt/jwt/v5

🚀 Running Locally

This service is designed to be run as part of the main docker-compose setup from the project's root directory.

# From the root of the TechTorque-2025 project
docker-compose up --build api-gateway