A seamless and modern online book borrowing platform that digitizes the traditional library experience.
OpenShelf allows users to explore a vast collection of books, filter by categories, and borrow titles digitally. The platform prioritizes security and performance using BetterAuth, Next.js, and MongoDB.
- 🔐 Email & Google Authentication (BetterAuth)
- 📖 Browse 12+ books across Story, Tech, and Science categories
- 🔍 Search books by title
- 🗂️ Filter books by category
- 📋 View detailed book information
- 👤 Personal profile with update functionality
- 🔒 Private routes for authenticated users
- 📱 Fully responsive on mobile, tablet, and desktop
next— React frameworkbetter-auth— Authenticationmongodb— Databasereact-hook-form— Form handlingreact-toastify— Toast notificationsreact-icons— Iconsreact-fast-marquee— Scrolling marqueeswiper— Testimonials carouseltailwindcss— Stylingdaisyui— UI components
- Next.js 16
- Tailwind CSS
- DaisyUI
- BetterAuth
- MongoDB
- Clone the repository
git clone https://github.com/farhansm01/OpenShelf.git
cd OpenShelf- Install dependencies
npm install- Set up environment variables — create a
.env.localfile:
MONGODB_URI=your_mongodb_connection_string
BETTER_AUTH_SECRET=your_secret
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret- Run the development server
npm run dev- Open http://localhost:3000 in your browser


