Skip to content

At0mXploit/Library-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library-Management-System

Library Management System with most basic ass features.

image

Admin Login:

admin
admin123

User Portal: Browse and manage books, upload new ones for approval, track your submissions with authentication funcionality and CRUD things.

Admin Portal: Dashboard overview, approve/reject books, manage all users and books.

Frontend: HTML, CSS, JavaScript Database & Auth: Firebase Firestore & Firebase Authentication Hosting: GitHub Pages

Firestore rule:

service cloud.firestore {
  match /databases/{database}/documents {

    match /books/{bookId} {
      // Anyone can read approved or pending books
      allow read: if true;

      // Authenticated users can create
      allow create: if request.auth != null;

      // Only admin OR uploader can edit/delete
      allow update, delete: if request.auth != null &&
        (
          get(/databases/$(database)/documents/users/$(request.auth.uid)).data.role == 'admin' ||
          resource.data.uploaderId == request.auth.uid
        );
    }

    match /users/{userId} {
      allow read: if request.auth != null;
      allow write: if request.auth != null && request.auth.uid == userId;
    }
  }
}

Yeah, nothing more really. Peace out! Oh there is also free API if anyone wants.

(—ᴗ—)

About

Library Management System with most basic ass features.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published