A comprehensive fintech platform built with a microservices architecture using NestJS, Next.js, and React Native.
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
- 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
- @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
- Node.js >= 18
- pnpm (recommended) or npm
- Docker & Docker Compose
# Install dependencies
npm install
# Generate Prisma client
npm run db:generate
# Push schema to database
npm run db:push# 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# 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# Run migrations
npm run db:migrate
# Seed data
npm run db:seed
# Open Prisma Studio
cd backend && npx prisma studio| 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 |
- 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