Skip to content

πŸš€ SwiftSecured SwiftSecured is a secure, Flask-based web application designed for efficient and scalable performance. It integrates essential data science and machine learning libraries like Pandas, NumPy, and Scikit-learn, enabling intelligent processing and analysis on the backend. The project supports seamless cross-origin requests using flask-

License

Notifications You must be signed in to change notification settings

surajsri23/Swiftsecured

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Credit Card Fraud Detection System

A machine learning-based web application for detecting fraudulent credit card transactions in real-time.

Features

  • Real-time fraud detection for single transactions
  • Batch processing of transactions via CSV upload
  • Transaction history tracking
  • User-friendly interface with visual feedback
  • Responsive design for all devices
  • Secure data handling

Tech Stack

  • Frontend: HTML, CSS (Tailwind CSS), JavaScript
  • Backend: Python (Flask)
  • Machine Learning: scikit-learn
  • Database: SQLite
  • Other Libraries: pandas, numpy

Team Members

  1. Suraj Srivasatv - Backend and ML Developer

  2. Sunny Kumar Yadav - Frontend Developer

  3. Shamshad Ali - Research Lead

  4. Suhani Singh - Documentation lead

Setup Instructions

  1. Clone the repository:
git clone https://github.com/surajsri23/SwiftSecure.git
cd credit-card-fraud-detection
  1. Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the application:
python app.py
  1. Open your browser and navigate to:
http://localhost:5000

Deployment

The application is deployed on Render.com. To deploy your own instance:

  1. Create a Render account at https://render.com

  2. Connect your GitHub repository:

    • Click "New +" and select "Web Service"
    • Connect your GitHub repository
    • Select the repository
    • Configure the service:
      • Name: swiftsecure
      • Environment: Python
      • Build Command: pip install -r requirements.txt
      • Start Command: gunicorn app:app
      • Python Version: 3.10.0
  3. Add environment variables:

    • FLASK_ENV=production
    • PYTHON_VERSION=3.10.0
  4. Click "Create Web Service"

The application will be automatically deployed and available at:

https://swiftsecure.onrender.com

Project Structure

credit-card-fraud-detection/
β”œβ”€β”€ app.py                 # Main Flask application
β”œβ”€β”€ model.py              # Machine learning model
β”œβ”€β”€ requirements.txt      # Python dependencies
β”œβ”€β”€ render.yaml          # Render deployment configuration
β”œβ”€β”€ static/              # Static files
β”‚   β”œβ”€β”€ css/            # CSS styles
β”‚   β”œβ”€β”€ js/             # JavaScript files
β”‚   └── images/         # Image assets
└── templates/          # HTML templates
    └── index.html      # Main page template

Usage

  1. Single Transaction Check:

    • Fill in the transaction details
    • Click "Analyze" to check for fraud
    • View the result with color-coded feedback
  2. Batch Upload:

    • Prepare a CSV file with transaction data
    • Click "Choose File" to select the CSV
    • Click "Upload & Scan" to process all transactions
    • View the results summary
  3. Transaction History:

    • View all processed transactions
    • Filter by status (Safe/Fraudulent)
    • Clear history when needed

Security Features

  • Input validation
  • File type verification
  • Secure data handling
  • Error handling
  • User confirmation for critical actions

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Credit Card Fraud Detection Dataset from Kaggle
  • Team members for their contributions
  • Open-source community for tools and libraries

About

πŸš€ SwiftSecured SwiftSecured is a secure, Flask-based web application designed for efficient and scalable performance. It integrates essential data science and machine learning libraries like Pandas, NumPy, and Scikit-learn, enabling intelligent processing and analysis on the backend. The project supports seamless cross-origin requests using flask-

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published