Skip to content

ShibilAhamed701212/Library_DBMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

35 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“š Enterprise Library Database Management System (LDBMS)

The Ultimate "Mega Project" Evolution - A high-performance, AI-augmented, and gamified Library Management Ecosystem. Built with a "Golden Ratio" design philosophy and powered by Google Gemini 1.5.

Python Flask AI-Powered Gamified Real-Time


๐Ÿ“– Documentation Hub

We have moved our in-depth technical documentation to the docs/ folder. Please refer to these files for detailed insights:

  • ๐Ÿ“˜ Architectural Deep Dive - A comprehensive breakdown of the Service-Repository Monolith pattern, Layered Architecture, and Design philosophy.
  • ๐Ÿ”ฌ Deep Component Analysis - An exhaustive, technical audit of every file, its limitations, and strategic roadmap.
  • ๐Ÿš€ Deployment Guide - Step-by-step instructions for deploying to platforms like Render using GitHub.
  • ๐Ÿ’ฌ Chat System Design - Internal mechanics of the real-time chat, anarchy/privacy modes, and guild systems.

๐ŸŒŸ Capabilities at a Glance

The LDBMS has evolved from a standard management tool into an enterprise-grade platform. Featuring over 35 modular features, it now combines traditional library science with cutting-edge AI, behavioral design, and real-time social interaction.

โœจ Enterprise Core Highlights

  • ๐Ÿง  AI-First Discovery: Semantic search and "Vibe" matching powered by Gemini 1.5.
  • ๐Ÿ’ฌ Social Hub: Real-time chat, guilds, and community interaction.
  • ๐ŸŽฎ Gamified Retention: XP systems, level-ups, and badges for active readers.
  • ๐Ÿ“ฑ Mobile-First Premium UI: Fully responsive, touch-optimized design with glassmorphism aesthetics.
  • ๐Ÿ’Ž Dynamic Tiering: Silver, Gold, and Platinum membership with intelligent privilege enforcement.
  • ๐Ÿ“Š Real-time Analytics: Interactive Chart.js dashboards and automated PDF reporting.
  • ๐Ÿ—๏ธ Smart Inventory: ISBN Auto-Hydration for zero-effort catalog expansion.

๐Ÿš€ Feature Set

๐Ÿ’ฌ Real-Time Collaboration & Social Hub

  • Channels & DMs: Seamless real-time messaging with individual users or topic-based channels.
  • Guilds & Communities: Join interest-based guilds (e.g., "Sci-Fi Lovers") with role-based access (Admin/Moderator).
  • Rich Media Support: Share files and images with instant previews; typing indicators and read receipts.
  • Privacy First: Anonymous chat mode for discreet discussions and granular profile privacy toggles.
  • Connections Hub: Manage friend requests and view pending invitations in a centralized dashboard.

๐Ÿง  Artificial Intelligence & Search

  • AI Librarian Chatbot: Conversational assistant for citations and general help.
  • "Vibe" & Mood Discovery: Find books by describing a mood (e.g., "dark and rainy").
  • Smart Recommendations: Personalized "Recommended for You" engine based on user history.
  • ISBN Auto-Hydrator: Fetch metadata (Title, Author, Cover) via global APIs (OpenLibrary/Google Books).

๐Ÿ“ฑ User Experience & Interface

  • Premium Glassmorphism Design: Modern, translucent UI with vibrant gradients and golden-ratio typography.
  • Mobile-Adaptive Layouts: Collapsible sidebars, touch-friendly tables, and optimized headers for phones/tablets.
  • Interactive Visuals: Smooth transitions, hover effects, and micro-animations for a "living" interface feeling.

๐ŸŽฎ Gamification & Community

  • XP & Leveling System: Earn experience for borrowing and returning on time.
  • Achievement Gallery: Unlock badges like "First Bloom" or "Scholar" for library milestones.
  • Personal Activity Feed: A visual timeline of your literary journey.
  • Social Discovery: Public profiles (optional) to see what fellow "Platinum" members are reading.

๐Ÿ‘‘ Enterprise Administration

  • Automated Reporting: Weekly PDF performance audits sent via scheduled email (APscheduler).
  • Advanced Analytics Dashboard: Interactive trends, genre popularity, and usage heatmaps.
  • System Health Monitor: Live diagnostics for DB latency, CPU load, and resource vitals.
  • Maintenance Mode: One-click system lockdown for updates (Admin-exclusive access).
  • Bulk Data Management: Import/Export capabilities for massive library catalogs.

๐Ÿ—๏ธ Technical Architecture

๐Ÿ“ Project Structure

LDBMS/
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ app.py                      # Application Factory & SocketIO Init
โ”‚   โ”œโ”€โ”€ scheduler.py                # Background job engine
โ”‚   โ”œโ”€โ”€ socket_events.py            # Real-time Event Handlers
โ”‚   โ”œโ”€โ”€ config/                     # Environment & Logging Config
โ”‚   โ”œโ”€โ”€ repository/                 # Data Access Layer (DAL)
โ”‚   โ”œโ”€โ”€ services/                   # Business Logic (AI, Chat, Guilds, etc.)
โ”‚   โ””โ”€โ”€ routes/                     # Blueprints (Admin, Chat, Member, System)
โ”œโ”€โ”€ docs/                           # Documentation Module
โ”‚   โ”œโ”€โ”€ 01_LDBMS_Architectural_Analysis.md
โ”‚   โ”œโ”€โ”€ 02_Deployment_Guide.md
โ”‚   โ”œโ”€โ”€ 03_Chat_System_Design.md
โ”‚   โ””โ”€โ”€ 04_Deep_Component_Analysis.md
โ”œโ”€โ”€ scripts/                        # Utility Scripts
โ”‚   โ””โ”€โ”€ export_codebase_for_ai.py   # Codebase consolidation tool
โ”œโ”€โ”€ templates/                      # Jinja2 Layouts (Responsive/Glassmorphism)
โ”‚   โ”œโ”€โ”€ chat/                       # Chat & Guild Interfaces
โ”‚   โ”œโ”€โ”€ admin/                      # Management Dashboards
โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ static/                         # Compiled CSS, JS Bundles, Assets
โ”œโ”€โ”€ mainCLI.py                      # Admin Terminal Interface
โ”œโ”€โ”€ run.py                          # Entry Point (Flask + SocketIO + Ngrok)
โ””โ”€โ”€ requirements.txt                # Project Dependencies

๐Ÿงช Tech Stack

  • Backend: Flask 3.0, Flask-SocketIO (Real-time), Apscheduler
  • Database: MySQL 8.0 (Pooled Connections)
  • AI Layer: Google Generative AI (Gemini 1.5 Flash)
  • Frontend: Vanilla CSS (Modern Variables), JavaScript (ES6+), Chart.js
  • Tools: Pandas, FPDF2, PyNgrok (Tunneling)

โš™๏ธ Installation & Setup

Prerequisites

  • Python 3.10+
  • MySQL 8.x
  • Google Gemini API Key (Optional)

1๏ธโƒฃ Environment Setup

python -m venv .venv
# Windows
.venv\Scripts\activate
# Linux/Mac
source .venv/bin/activate

pip install -r requirements.txt

2๏ธโƒฃ Configuration

Create a .env file in the root directory:

DB_HOST=127.0.0.1
DB_NAME=library_db
DB_USER=root
DB_PASSWORD=your_password
GEMINI_API_KEY=your_key_here
SECRET_KEY=your_secret_key
MAIL_SERVER=smtp.gmail.com
MAIL_USERNAME=your_email@gmail.com
MAIL_PASSWORD=app_password

3๏ธโƒฃ Initialize Database

mysql -u root -p < database/schema_evolution.sql
python database/seed_mega.py

4๏ธโƒฃ Execution

python run.py

The application will launch with a local URL and an optional public Ngrok URL.


๐Ÿ‘จโ€๐Ÿ’ป Author & Credits

Shibil Ahamed
Built with the goal of redefining the "Library System" as a high-tech literary social hub.

Special thanks to the Google Gemini Team for providing the intelligence layer that powers our discovery engine.


โญ Star the LDBMS if you want to revolutionize reading!

Made with โค๏ธ using Flask, MySQL, and Artificial Intelligence

About

Next-gen Library DBMS: AI Discovery, Real-time Chat, and Gamification using Flask, MySQL, and Socket.IO.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors