Skip to content
This repository was archived by the owner on Feb 18, 2026. It is now read-only.

melodia-grupo09/melodia-gateway

Repository files navigation

Melodía API Gateway

CI/CD Status Coverage Status Node.js Version NestJS Version TypeScript Version

Rest API Gateway built with NestJS for the Melodía application.

Live Deployment

The application is deployed on Heroku and accessible at: https://melodia-gateway-2b9807728e9a.herokuapp.com/.

Overview

This API Gateway serves as the central entry point for the Melodía platform, providing:

  • Firebase Authentication: Secure JWT-based authentication using Firebase Admin SDK
  • Request/Response Interceptors: Standardized API responses and error handling
  • Production Monitoring: Comprehensive logging and error tracking

Architecture

The gateway follows a modular microservices architecture pattern:

  • API Gateway Layer: Routes and validates incoming requests
  • Authentication Layer: Firebase-based JWT verification

Connected Services

The gateway integrates with the following external services:

Getting Started

Prerequisites

  • Node.js (v22.x)
  • npm or yarn
  • Redis (for caching)

Environment Variables

PORT=3000
REDIS_URL=redis://localhost:6379
# Service URLs
USERS_SERVICE_URL=...
SONGS_SERVICE_URL=...
ARTISTS_SERVICE_URL=...
PLAYLISTS_SERVICE_URL=...
METRICS_SERVICE_URL=...
NOTIFICATIONS_SERVICE_URL=...
# Firebase
FIREBASE_PROJECT_ID=...
# Other configs as needed

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

API Documentation

For comprehensive API documentation, including all endpoints, request/response schemas, and interactive testing, visit our Swagger documentation:

Interactive API Documentation

Code Coverage

Comprehensive test coverage tracked automatically via Codecov:

Test Coverage

View Detailed Coverage Report & Interactive Graphs

Graph

Dependencies

Core Framework

  • NestJS: Modern Node.js framework with TypeScript support
  • Firebase Admin SDK: Authentication and user management
  • Axios: HTTP client for external API integration
  • Redis: Caching layer

Development & Testing

  • Jest: Testing framework with mocking capabilities
  • ESLint: Code quality and style enforcement
  • TypeScript: Type safety and enhanced developer experience

About

API Gateway Ingenieria de Software II 20252C Rojas

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages