Skip to content

programmrz/fakedoc

Repository files navigation

FakeDoc - Bank Statement Generator

A Vite + React + TypeScript application that generates realistic Wells Fargo bank statement PDFs from customizable transaction data.

Features

  • ✅ Exact Wells Fargo bank statement layout replication
  • ✅ Customizable customer information
  • ✅ Editable account details and balances
  • ✅ Transaction history management
  • ✅ PDF generation capability
  • ✅ Print-optimized styling
  • ✅ Responsive design

Getting Started

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn

Installation

  1. Clone the repository:
git clone <repository-url>
cd fakedoc
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Open your browser and navigate to http://localhost:3000

Usage

  1. Edit Statement Details: Use the form on the left to modify customer information, account numbers, and balances.

  2. Preview: The right panel shows a real-time preview of the bank statement as it will appear in the PDF.

  3. Generate PDF: Click the "Generate PDF" button to create and download a PDF version of the statement.

Project Structure

src/
├── components/
│   ├── BankStatementPDF.tsx    # Main statement component
│   └── BankStatementPDF.css    # Statement styling
├── types.ts                    # TypeScript interfaces
├── App.tsx                     # Main application component
├── main.tsx                    # React entry point
└── index.css                   # Global styles

Customization

Adding Transactions

Modify the transactions array in the statementData state:

transactions: [
	{
		date: "12/27",
		description: "Your transaction description",
		depositsAdditions: 100.0, // Optional
		withdrawalsSubtractions: 50.0, // Optional
		endingDailyBalance: 150.0, // Optional
	},
];

Modifying Account Options

Update the accountOptions object to change which services appear as checked:

accountOptions: {
  onlineBanking: true,
  onlineBillPay: false,
  // ... other options
}

Technologies Used

  • Vite - Fast build tool and dev server
  • React 18 - UI framework
  • TypeScript - Type safety
  • jsPDF - PDF generation
  • html2canvas - HTML to canvas conversion

Development

Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run lint - Run ESLint
  • npm run preview - Preview production build

Styling

The component uses CSS that closely matches the Wells Fargo statement design:

  • Exact font sizes and weights
  • Proper spacing and alignment
  • Print-optimized layouts
  • Responsive design for mobile viewing

License

This project is for educational purposes only. Please ensure compliance with all applicable laws and regulations when using this software.

Disclaimer

This software is intended for legitimate document generation purposes only. Users are responsible for ensuring their use complies with all applicable laws and regulations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published