Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

PayFlow UPI - Full-Stack Fintech Web Application

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.

Tech Stack

  • 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

Getting Started

Prerequisites

  • Node.js (v18+ recommended)
  • Docker & Docker Compose (for Postgres/Nginx setup)

Running with Docker Compose

To boot the entire stack (Database, Nginx proxy, Next.js frontend, Express backend) in one command:

docker-compose up --build

The application will be accessible at http://localhost.


Running Locally (Development Mode)

1. Setup PostgreSQL Database

Make sure you have a local PostgreSQL instance running and set up the connection string in backend/.env.

2. Run Backend

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 dev

3. Run Frontend

cd ../frontend
# Create local .env configuration
cp ../env.example .env

# Install dependencies
npm install

# Start development server
npm run dev

The client app will be running at http://localhost:3000.


Seed Test Accounts

The following credentials are created by the seeding script for testing:

1. Administrative Account

  • 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.

2. User Account (Paras Jain)

  • Email: paras@payflow.com
  • Mobile: 9876543210
  • Password: User@PayFlow123

3. SMS OTP Verification Mock

  • When registering a new user, input any mobile number and click Send OTP.
  • The server mocks sending the OTP (logged to node console).
  • Enter 123456 in the OTP field to pass verification.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages