A web application that extracts transaction information from Commercial Bank of Ethiopia (CBE) transaction PDF files. Users can upload a PDF transaction file, and the application will automatically extract and display the receiver name and transaction amount.
- 📄 PDF file upload and parsing
- 🔍 Automatic extraction of receiver name and transaction amount
- 🎨 Clean and simple user interface
- ⚡ Fast and efficient processing
- Upload a CBE transaction PDF file through the web interface
- The backend parses the PDF and extracts:
- Receiver Name: The account number associated with the receiver
- Amount: The transaction amount
- The extracted information is displayed on the screen
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js with Express.js
- PDF Processing: pdf-parse library
- File Upload: Multer middleware
- Clone the repository:
git clone <https://github.com/natasteria/cbeTransactionChecker>
cd cbeTransactionChecker- Install dependencies:
npm install- Start the development server:
node server.js- Open your browser and navigate to
http://localhost:8080
cbeTransactionChecker/
├── public/
│ ├── index.html # Main HTML file
│ ├── script.js # Frontend JavaScript
│ └── style.css # Styling
├── server.js # Express server and API endpoints
├── package.json # Project dependencies
└── netlify.toml # Netlify deployment configuration
Uploads and processes a PDF transaction file.
Request:
- Method: POST
- Content-Type: multipart/form-data
- Body: FormData with
transactionFilefield containing the PDF file
Response:
{
"receiver": "251945455141",
"amount": "5.00"
}This project is configured for deployment on Netlify. The netlify.toml file contains the necessary configuration.
Note: For Netlify deployment, you'll need to convert the Express server to a Netlify serverless function. The current configuration assumes the server will be adapted for serverless deployment.
express: Web framework for Node.jscors: Enable CORS for cross-origin requestsmulter: Handle multipart/form-data for file uploadspdf-parse: Parse and extract text from PDF files