Skip to content

【Making code with love - show some love back with a star! πŸ’β­οΈγ€‘A modern, full-featured library management system built with Next.js 15 and Supabase. Features real-time book tracking, user authentication, borrowing management, and a responsive UI powered by shadcn/ui components.

License

Notifications You must be signed in to change notification settings

ChanMeng666/library-management-system

Repository files navigation

πŸ“š Library Management System

A modern web-based library management system that helps libraries manage their collections and allows users to browse, borrow, and reserve books efficiently. Built with Next.js 15, TypeScript, and Supabase, featuring a clean and responsive UI powered by shadcn/ui components.

屏幕ζˆͺε›Ύ_11-11-2024_17212_localhost

屏幕ζˆͺε›Ύ_11-11-2024_1733_localhost

屏幕ζˆͺε›Ύ_11-11-2024_17321_localhost

屏幕ζˆͺε›Ύ_11-11-2024_17342_localhost

屏幕ζˆͺε›Ύ_11-11-2024_1747_localhost

屏幕ζˆͺε›Ύ_11-11-2024_17355_localhost

✨ Features

πŸ“š Book Management

  • Browse and search books by title, author, or ISBN
  • Advanced filtering by categories
  • Real-time book availability tracking
  • Cover image management system
  • Detailed book information pages

πŸ”’ Security & Authentication

  • Secure email/password authentication via Supabase
  • Role-based access control
  • Protected routes and API endpoints
  • User profile management
  • Session handling

πŸ“– Borrowing System

  • Intuitive book checkout process
  • Automated due date management
  • Book reservation queue
  • Return processing
  • Late return notifications
  • Borrowing history tracking

πŸ’» Modern UI/UX

  • Responsive design for all devices
  • Dark mode support
  • Real-time updates
  • Interactive toast notifications
  • Loading states and error handling
  • Clean and intuitive interface

πŸ› οΈ Tech Stack

Frontend

Next JS TypeScript React TailwindCSS

Backend & Database

Supabase PostgreSQL

Tools & Utilities

  • shadcn/ui - UI Components
  • React Hook Form - Form handling
  • Zod - Schema validation
  • date-fns - Date manipulation
  • ESLint - Code linting
  • Prettier - Code formatting

πŸš€ Getting Started

  1. Clone the repository
git clone https://github.com/ChanMeng666/library-management-system.git
cd library-management-system
  1. Install dependencies
npm install
  1. Set up environment variables Create a .env.local file in the root directory:
NEXT_PUBLIC_SUPABASE_URL=your-supabase-url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
  1. Run the development server
npm run dev

Open http://localhost:3000 with your browser to see the result.

πŸ“ Project Structure

β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/              # Next.js app router pages
β”‚   β”œβ”€β”€ components/       # Reusable UI components
β”‚   β”œβ”€β”€ contexts/         # React contexts
β”‚   β”œβ”€β”€ hooks/           # Custom React hooks
β”‚   β”œβ”€β”€ lib/             # Utility functions and configurations
β”‚   └── types/           # TypeScript type definitions
β”œβ”€β”€ public/              # Static assets
└── ...configuration files

🀝 Contributing

We welcome contributions to improve the Library Management System! Here's how you can help:

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Please ensure you follow our coding standards and include appropriate tests.

πŸ“„ License

See the AGPL-3.0 license file for details.

πŸ‘€ Author

Chan Meng

⭐ Support

If you found this project helpful, give it a ⭐️. Every star motivates us to keep improving!

πŸ“± Connect With Us

LinkedIn GitHub

About

【Making code with love - show some love back with a star! πŸ’β­οΈγ€‘A modern, full-featured library management system built with Next.js 15 and Supabase. Features real-time book tracking, user authentication, borrowing management, and a responsive UI powered by shadcn/ui components.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published