Skip to content
johnesuPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Fintech Platform

A comprehensive fintech platform built with a microservices architecture using NestJS, Next.js, and React Native.

Architecture

fintech-platform/
├── apps/
│   ├── backend/          # NestJS REST API
│   ├── mobile/           # Next.js mobile-first PWA
│   └── admin/            # Next.js admin dashboard
├── packages/
│   ├── shared/           # Shared types, utils, constants (@fintech/shared)
│   └── ui/               # Shared UI component library (@fintech/ui)
├── docker/               # Docker & deployment configuration
└── backend/              # Legacy/alternate backend structure

Services

  • Backend (NestJS): RESTful API with modular architecture, Prisma ORM, JWT auth
  • Mobile (Next.js): Mobile-first progressive web app for end users
  • Admin (Next.js): Admin dashboard for platform management
  • PostgreSQL: Primary database
  • Redis: Caching, session store, rate limiting

Shared Packages

  • @fintech/shared: TypeScript types, validation utilities, constants, and crypto helpers shared across all apps
  • @fintech/ui: shadcn/ui-inspired React component library with Tailwind CSS

Setup

Prerequisites

  • Node.js >= 18
  • pnpm (recommended) or npm
  • Docker & Docker Compose

Installation

# Install dependencies
npm install

# Generate Prisma client
npm run db:generate

# Push schema to database
npm run db:push

Development

# Start all services in development mode
npm run dev

# Or start individual services
cd apps/backend && npm run dev
cd apps/mobile && npm run dev
cd apps/admin && npm run dev

Docker Deployment

# Build and start all services
docker compose -f docker/docker-compose.yml up --build

# Run in background
docker compose -f docker/docker-compose.yml up -d

Database

# Run migrations
npm run db:migrate

# Seed data
npm run db:seed

# Open Prisma Studio
cd backend && npx prisma studio

Scripts

Command Description
npm run dev Start all services in dev mode
npm run build Build all packages and apps
npm run lint Lint all projects
npm run format Format code with Prettier
npm run db:generate Generate Prisma client
npm run db:push Push schema to database
npm run db:migrate Run database migrations
npm run db:seed Seed the database

Tech Stack

  • Runtime: Node.js, TypeScript
  • Backend: NestJS, Prisma, PostgreSQL, Redis
  • Frontend: Next.js 14, React, Tailwind CSS
  • Monorepo: TurboRepo, npm workspaces
  • Auth: JWT, OTP, bcrypt
  • Infrastructure: Docker, Nginx

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages