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

TechTorque-2025/API_Gateway

Repository files navigation

🌐 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors