Skip to content

raghav26102000/AuditFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” AuditFlow

Enterprise Audit Management System

Python Django React PostgreSQL Redis Docker AWS S3 License


AuditFlow is a full-stack web application that streamlines end-to-end audit processes for organizations β€” featuring real-time collaboration, barcode tracking, file management, role-based access control, and comprehensive reporting.


πŸš€ Get Started Β· ✨ Features Β· πŸ— Architecture Β· πŸ“Έ Screenshots Β· 🀝 Contributing



πŸ“Έ Screenshots

Below are live recordings of the platform in action.

Screen Preview
πŸ” Login β–Ά Watch Login Flow
πŸ“Š Dashboard β–Ά Watch Dashboard
πŸ“‹ Audit Form β–Ά Watch Form Creation
πŸ“ Draft Management β–Ά Watch Drafts
βœ… Submitted Audits β–Ά Watch Submissions
πŸ›  Admin Panel β–Ά Watch Admin Panel
βš™οΈ Configuration β–Ά Watch Configuration
πŸšͺ Logout β–Ά Watch Logout


✨ Features


πŸ“‹ Audit Management

  • Create and manage audit forms with barcode tracking
  • Support for multiple audit types with customizable categories
  • Draft β†’ Final status management workflow
  • Case status tracking β€” Yes / No / Incomplete classifications

πŸ” Error Tracking & Classification

  • Component-level error tracking with detailed categorization
  • Error definition master data with codes and descriptions
  • Final error category classification
  • Support for components with and without errors
  • Comprehensive remark system for operations and audit notes

πŸ‘₯ User Management & Permissions

  • Role-based access control β€” Audit Users & Admins
  • Google OAuth integration for seamless sign-in
  • Profile management with picture uploads
  • Permission-based audit portal access

⚑ Real-time Collaboration

  • WebSocket-based real-time notifications (Django Channels)
  • Live audit status updates across all connected users
  • Multi-user collaboration support
  • Presence tracking for active users

☁️ File Management

  • AWS S3 integration for secure, scalable file storage
  • File attachments for error cases and components
  • Support for multiple file formats
  • Automatic file cleanup on record updates

πŸ“Š Audit Sampling & Analytics

  • Configurable audit sampling parameters
  • Date range filtering for audit periods
  • Client-based sampling with multiple client support
  • Performer location tracking
  • Research and insufficiency flagging
  • Genuine case classification

πŸ—‚οΈ Master Data Management

  • Audit type configuration
  • Error category and definition management
  • Check status, case status, and change status masters
  • Final error category configuration

πŸ“€ Reporting & Export

  • Excel export capabilities for audit data
  • Comprehensive audit logging with change tracking
  • JSON-based data storage for flexible reporting
  • Full audit trail with admin action tracking


πŸ— Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        CLIENT LAYER                      β”‚
β”‚        React.js  Β·  Material-UI  Β·  Zustand State        β”‚
β”‚              Chart.js  Β·  FilePond  Β·  WebSocket         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                         β”‚  HTTP / WebSocket
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      GATEWAY LAYER                       β”‚
β”‚          JWT Authentication  Β·  Google OAuth             β”‚
β”‚               Django Channels (WS)                       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                         β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      SERVICE LAYER                       β”‚
β”‚    Django REST Framework  Β·  Celery Workers              β”‚
β”‚         Django Channels  Β·  Advanced Filtering           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚                          β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚     DATA LAYER      β”‚   β”‚       STORAGE LAYER          β”‚
β”‚  PostgreSQL Β· Redis β”‚   β”‚   AWS S3 (Files & Uploads)   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   └─────────────────────────────-β”˜


πŸ›  Tech Stack

Layer Technology Purpose
Backend Django 4.x + DRF REST API, business logic
Frontend React.js + Material-UI Responsive, modern UI
Database PostgreSQL Primary data store
Cache / Queue Redis + Celery Sessions, async task processing
Real-time Django Channels WebSocket notifications
File Storage AWS S3 Secure cloud file storage
Auth JWT + Google OAuth Stateless authentication
Containerisation Docker + Docker Compose Dev & production deployment
State Management Zustand Lightweight frontend state
Charts Chart.js Analytics & data visualization
File Upload UI FilePond Drag-and-drop file management


πŸ”„ Audit Workflow

1. Configure Master Data
   └─ Set up audit types, error categories, status masters (Admin Panel)
          β”‚
          β–Ό
2. Create Audit Form
   └─ Generate form with barcode, sampling params, client & location info
          β”‚
          β–Ό
3. Record & Classify Errors
   └─ Add component-level errors, attach files (S3), add remarks
   └─ Collaborators see live updates via WebSocket
          β”‚
          β–Ό
4. Save as Draft or Submit
   └─ Draft: save for later completion
   └─ Submit: lock for final review with full change history
          β”‚
          β–Ό
5. Analyze & Export
   └─ Review dashboards, filter by date/client, export to Excel


πŸš€ Quick Start

Prerequisites

Make sure you have the following installed:


1. Clone the Repository

git clone https://github.com/raghav26102000/AuditFlow.git
cd AuditFlow

2. Configure Environment Variables

cp .env.example .env

Edit .env and fill in your values:

# Django
SECRET_KEY=your-secret-key
DEBUG=False
ALLOWED_HOSTS=localhost,127.0.0.1

# Database
DB_NAME=auditflow
DB_USER=postgres
DB_PASSWORD=your-db-password
DB_HOST=db
DB_PORT=5432

# Redis
REDIS_URL=redis://redis:6379/0

# AWS S3
AWS_ACCESS_KEY_ID=your-access-key
AWS_SECRET_ACCESS_KEY=your-secret-key
AWS_STORAGE_BUCKET_NAME=your-bucket-name
AWS_S3_REGION_NAME=us-east-1

# Google OAuth
GOOGLE_CLIENT_ID=your-client-id
GOOGLE_CLIENT_SECRET=your-client-secret

3. Build & Start with Docker

docker compose up --build -d

4. Run Migrations & Create Superuser

docker compose exec backend python manage.py migrate
docker compose exec backend python manage.py createsuperuser

5. Open the App

Service URL
🌐 Frontend http://localhost:3000
βš™οΈ API http://localhost:8000/api/
πŸ”§ Admin Panel http://localhost:8000/admin/


πŸ—‚οΈ Project Structure

AuditFlow/
β”œβ”€β”€ backend/                  # Django backend
β”‚   β”œβ”€β”€ audit/                # Core audit app
β”‚   β”‚   β”œβ”€β”€ models.py         # Audit, Component, Error models
β”‚   β”‚   β”œβ”€β”€ views.py          # REST API views
β”‚   β”‚   β”œβ”€β”€ serializers.py    # DRF serializers
β”‚   β”‚   β”œβ”€β”€ consumers.py      # WebSocket consumers
β”‚   β”‚   └── tasks.py          # Celery async tasks
β”‚   β”œβ”€β”€ users/                # User management app
β”‚   β”œβ”€β”€ masters/              # Master data (types, categories)
β”‚   └── config/               # Django settings & routing
β”‚
β”œβ”€β”€ frontend/                 # React frontend
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/       # Reusable UI components
β”‚   β”‚   β”œβ”€β”€ pages/            # Route-level pages
β”‚   β”‚   β”œβ”€β”€ store/            # Zustand state stores
β”‚   β”‚   └── api/              # Axios API clients
β”‚   └── public/
β”‚
β”œβ”€β”€ docker-compose.yml        # Multi-service orchestration
β”œβ”€β”€ Dockerfile.backend        # Backend container
β”œβ”€β”€ Dockerfile.frontend       # Frontend container
└── .env.example              # Environment variable template


🎯 Use Cases

Industry Application
🏭 Manufacturing Quality audit management across production lines
βš–οΈ Compliance Regulated industry auditing with full traceability
πŸ”„ Service Organizations Process audit tracking and documentation
🌐 Multi-location Enterprises Coordinated audits across distributed teams
🀝 Audit Firms Real-time team collaboration and reporting


πŸ”‘ Key Benefits

  • ⚑ Streamlined Workflow β€” End-to-end audit process management in one platform
  • πŸ”΄ Real-time Collaboration β€” Live updates and notifications via WebSocket
  • πŸ“œ Comprehensive Tracking β€” Detailed audit trails and change logging
  • πŸ“¦ Scalable Design β€” Built to handle enterprise-scale audit operations
  • 🎨 Modern UI β€” Intuitive interface with advanced data visualization


🀝 Contributing

Contributions are welcome! Here's how to get started:

# Fork the repository, then:
git clone https://github.com/your-username/AuditFlow.git
cd AuditFlow

# Create a feature branch
git checkout -b feature/your-feature-name

# Make your changes, then commit
git commit -m "feat: add your feature"

# Push and open a Pull Request
git push origin feature/your-feature-name

Please follow the existing code style and include tests for new features.



πŸ“„ License

This project is licensed under the MIT License β€” see the LICENSE file for details.



Made with ❀️ by raghav26102000

⭐ Star this repo if you find it useful!

GitHub stars GitHub forks

About

Enterprise audit management platform with real-time collaboration, barcode tracking, role-based access control, analytics, and secure cloud-based audit workflows.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages