Skip to content

Harsheetsharma/paytm-complete

Repository files navigation

💸 Paytm Clone - Full Stack Application

This is a full-stack Paytm clone built with Next.js, Prisma, and PostgreSQL, supporting real-time transaction tracking, user authentication,Stripe payments , and balance management. It follows modern development practices with a monorepo structure and CI/CD integration.


✅ Stripe payment integration (Checkout flow)

🚀 Tech Stack

Layer Technology
Frontend Next.js, Tailwind CSS
Backend Next.js API Routes, Prisma
Auth NextAuth.js (Credentials)
Database PostgreSQL (Docker)
DevOps GitHub Actions (CI/CD)
Monorepo Turborepo structure

✨ Features

  • ✅ User registration and login (NextAuth credentials provider)
  • 💰 Balance management for users
  • 🏬 Merchant payment flow
  • 📲 On-ramp transaction history
  • 🔐 Secure session-based authentication
  • 🧾 Transaction ledger per user
  • 📦 Clean monorepo structure
  • 🔄 Continuous deployment (CI/CD)

📁 Project Structure

paytm-complete/

│
├── apps/
│ └── user-app/ # Next.js frontend
│
├── packages/
│ ├── db/ # Prisma schema and DB logic
│ ├── config/ # Shared configs (env, auth, etc.)
│
├── prisma/ # Migrations & seed
│
├── .github/workflows/ # CI/CD configs
├── .env.example # Sample environment variables
└── README.md

🛠️ Setup Instructions

1. Clone the Repository

git clone https://github.com/Harsheetsharma/paytm-complete.git
cd paytm-complete

2. Install Dependencies

npm install

3. Set up Environment Variables

Create a .env file in the root and in packages/db based on .env.example.

# Root .env
DATABASE_URL=docker_database_URL
NEXTAUTH_SECRET=your-secret
NEXTAUTH_URL=http://localhost:3000

4. Migrate Database

cd packages/db
npx prisma migrate dev
npx prisma generate

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •