Bargin is a modern E-Library platform that brings thousands of books to your fingertips — on the web and on mobile. Browse, borrow, read, and manage your personal library from anywhere.
📖 "A room without books is like a body without a soul." — Now your room fits in your pocket.
| Feature | Description | |
|---|---|---|
| 🔍 | Smart Search | Find books by title, author, genre, or ISBN in milliseconds |
| 📚 | Digital Borrowing | Borrow e-books with automatic return dates |
| 🌙 | Dark / Light Mode | Easy on the eyes, day and night |
| 📱 | Cross-Platform | Seamless experience on Web, Android (Kotlin) & Flutter app |
| 🔐 | Secure Auth | JWT-based authentication with role management (Admin / Member) |
| ⭐ | Reviews & Ratings | Rate books and read community reviews |
| 📊 | Reading Dashboard | Track progress, bookmarks, and reading history |
| 🔔 | Smart Notifications | Due-date reminders & new arrival alerts |
bargin/
│
├── 📁 backend/ # Django REST API
│ ├── 📁 api/ # REST endpoints
│ ├── 📁 books/ # Book models & logic
│ ├── 📁 users/ # Auth & user management
│ └── 🐍 manage.py
│
├── 📁 frontend/ # React web app
│ ├── 📁 src/
│ │ ├── 📁 components/
│ │ ├── 📁 pages/
│ │ └── 📁 hooks/
│ └── 📦 package.json
│
├── 📁 mobile-kotlin/ # Native Android app
│ └── 📁 app/src/main/
│
├── 📁 mobile-flutter/ # Cross-platform Flutter app
│ └── 📁 lib/
│
└── 📄 README.mdcd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
python manage.py migrate
python manage.py runserverAPI runs at:
http://localhost:8000/api/
cd frontend
npm install
npm run devWeb app runs at:
http://localhost:5173/
cd mobile-flutter
flutter pub get
flutter runOpen mobile-kotlin/ in Android Studio, sync Gradle, and hit
| Method | Endpoint | Description |
|---|---|---|
POST |
/api/auth/register/ |
Create an account |
POST |
/api/auth/login/ |
Get JWT tokens |
GET |
/api/books/ |
List all books |
GET |
/api/books/:id/ |
Book details |
POST |
/api/books/borrow/ |
Borrow a book |
POST |
/api/books/return/ |
Return a book |
GET |
/api/users/me/ |
Profile & history |
- 🏗️ Project scaffolding
- 🔐 Authentication (JWT)
- 📚 Book catalog API
- 📖 In-app e-book reader (EPUB/PDF)
- 🌐 Multi-language support (EN / FA)
- 🤖 AI-based book recommendations
- ⬇️ Offline reading mode
- 🔔 Push notifications
Contributions are welcome! 🎉
- 🍴 Fork the repository
- 🌿 Create your branch:
git checkout -b feature/amazing-feature - 💾 Commit your changes:
git commit -m 'Add amazing feature' - 📤 Push to the branch:
git push origin feature/amazing-feature - 🔃 Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.