PayFlow UPI is a complete production-grade premium fintech payment prototype app designed like a modern Indian UPI payments application. It includes instant transfers, a ledger-backed wallet system, an advanced cashback engine, an interactive scratch card reward center, a referral network, user KYC verification, real-time socket notifications, and an administrative campaign dashboard.
- Frontend: Next.js 15 (App Router), React 19, Tailwind CSS, Zustand, TanStack Query (React Query), Framer Motion, Recharts
- Backend: Node.js, Express.js, TypeScript, Socket.io, Prisma ORM
- Database: PostgreSQL
- Orchestration: Docker, Docker Compose, Nginx
- Node.js (v18+ recommended)
- Docker & Docker Compose (for Postgres/Nginx setup)
To boot the entire stack (Database, Nginx proxy, Next.js frontend, Express backend) in one command:
docker-compose up --buildThe application will be accessible at http://localhost.
Make sure you have a local PostgreSQL instance running and set up the connection string in backend/.env.
cd backend
# Create local .env configuration (use env.example values)
cp ../env.example .env
# Install dependencies
npm install
# Run Prisma schema generation and migrations
npx prisma generate
npx prisma db push
# Seed database with initial campaigns, offers, and users
npx prisma db seed
# Start development server
npm run devcd ../frontend
# Create local .env configuration
cp ../env.example .env
# Install dependencies
npm install
# Start development server
npm run devThe client app will be running at http://localhost:3000.
The following credentials are created by the seeding script for testing:
- Email:
admin@payflow.com - Mobile:
9999999999 - Password:
Admin@PayFlow123 - Use this account to approve KYC submissions, configure cashback campaigns, and view platform metrics on the Admin Panel.
- Email:
paras@payflow.com - Mobile:
9876543210 - Password:
User@PayFlow123
- When registering a new user, input any mobile number and click Send OTP.
- The server mocks sending the OTP (logged to node console).
- Enter
123456in the OTP field to pass verification.