Memetroplis ProductionGuideReference

11. Key Components

Layers and Handlers

Component

Implementation Details

API Gateway

NestJS Controllers

Service Layer

Business logic, blockchain calls, cache reads/writes

Database Layer

Prisma ORM, MySQL or Postgres

Blockchain SDKs

Ethers.js, Solana-Web3.js, Anchor

Authentication

Passport-JWT

Authorization

Custom guards + JWT tokens

Caching

Redis via Cache-Manager

Health Monitoring

NestJS Terminus

Task Scheduling

NestJS Scheduler

API Documentation

Swagger

Testing Frameworks

Jest, ts-jest, Supertest

Environment Management

dotenv

12. Technical Stack - High Level

Backend systems stack