Readook is a full-stack MERN marketplace that blends modern e-commerce with AI and ML based recommendation systems. It features intelligent book discovery powered by Google Gemini, personalized recommendations,role-based multi-vendor management, secure delivery verification and password change feature.
Readook combines traditional ML based recommendation engine using weighted scoring technique with Generative AI to create an intelligent book discovery experience.
Powered by Google Gemini 2.5 Flash
Users can search naturally using queries such as:
Books about habit building
Hindi motivational books
Books similar to Atomic Habits
Finance books for beginners
Gemini extracts:
- Author preferences
- Language preferences
- Categories
- Search keywords
The extracted data is then used to search marketplace inventory intelligently.
Sellers can only provide:
Book Title
Author Name
for Gemini to automatically generate:
- Professional marketplace description
- Book category
This significantly reduces listing effort and improves listing quality.
For every book, Gemini-API generates searchable metadata:
Author Keywords
Category Keywords
Search Keywords
Discovery Keywords
Example:
Atomic Habits
Keywords:
habits
discipline
productivity
self improvement
james clear
success
Readook does not directly return AI responses.
Instead:
Gemini extracts intent
โ
Keywords generated
โ
Books filtered
โ
Weighted scoring applied
โ
Best matches returned
This produces faster, explainable, and inventory-aware recommendations.
Readook learns user preferences over time.
Uses Mongoose Maps to maintain user affinity vectors for:
- Categories
- Authors
Based on:
- Ratings
- Favourites
- Orders
Recommendation Score:
Score = (InterestWeight ร 10) + GlobalRating
Books are ranked according to both:
- User preference
- Platform-wide quality
- Orders
- Ratings
These provide strong positive signals.
- Adding books to favourites
Provides intent signals without dominating recommendations.
Guest users receive:
Global Trending Books
Authenticated users receive:
Personalized Recommendations
using soft-auth recommendation middleware.
Prevents fraudulent delivery confirmations.
Every order generates a unique:
6-Digit Delivery Verification Code
System generates:
deliveryCode
and stores it securely.
The code is visible only inside the user's order section.
Seller requests the code from the customer.
Backend validates:
req.body.deliveryCode === order.deliveryCodebefore updating order status.
- Prevents fake deliveries
- Protects buyers
- Prevents seller abuse
- Creates a verified delivery handshake
- Access Token Architecture
- Refresh Token Architecture
- Refresh Token Rotation
- Protected Routes
- bcrypt Password Hashing
- Secure Password Storage
- Password Reset Flow
Implemented using:
Nodemailer + OTP Verification
Features:
- Mandatory email verification before registration
- Expiring OTPs
- Duplicate account prevention
Flow:
Enter Email
โ
Receive OTP
โ
Verify OTP
โ
Account Created
Secure OTP-based password reset.
Flow:
Forgot Password
โ
Enter Email
โ
Receive OTP
โ
Verify OTP
โ
Set New Password
โ
Redirect To Login
Role-Based Access Control:
User
Seller
Admin
Backend-enforced authorization protects:
- Admin Routes
- Seller Actions
- Ownership-based operations
- Browse books
- View book details
- Add favourites
- Place orders
- View order history
- Rate purchased books
- Manage profile
- Add books
- Edit books
- Delete books
- AI-generated descriptions
- AI-generated keywords
- Manage sellers
- Manage orders
- Handle complaints
- Blacklist malicious users
- Platform moderation
Users can rate books after successful delivery.
Features:
- Dynamic star rating UI
- Real-time feedback
- Recommendation profile updates
- Global rating recalculation
When an order is placed:
Book Snapshot Stored
Benefits:
- Preserves order history
- Prevents broken orders
- Supports deleted books safely
- JWT Authentication
- Refresh Tokens
- bcrypt Password Hashing
- OTP Email Verification
- Forgot Password OTP Flow
- Protected Backend Routes
- Ownership Verification
- Role-Based Authorization
- HTTP-Only Refresh Token Cookies
- Delivery Verification Codes
- Request Validation
React.js
Redux Toolkit
React Router
Tailwind CSS
Axios
Node.js
Express.js
JWT
bcrypt
Nodemailer
Google Gemini API
MongoDB
Mongoose
Google Gemini 2.5 Flash
- RESTful API Architecture
- Role-Based Access Control
- Recommendation Engine
- AI-Powered Search Layer
- Snapshot Order System
- Refresh Token Authentication
- Multi-Vendor Marketplace Architecture
git clone https://github.com/Venu4i/Readook.gitcd backend
npm install
npm run devcd frontend
npm install
npm run dev- Seller Analytics Dashboard
- Book Reviews with sentiment analysis
- Wishlist Notifications
- Payment Gateway Integration
Venu Verma
Readook demonstrates practical implementation of:
- Full Stack MERN Development
- Authentication & Security
- Recommendation Systems
- AI Integration
- REST API Design
- MongoDB Data Modeling
- Marketplace Architecture
- Role-Based Authorization