This is a simple book lending application built with Ruby on Rails 8. Users can register, browse books, borrow, return them, and view their borrowed books.
- User authentication (Rails 8 default authentication system)
- Book listing (Shows availability status)
- Book details (With borrow button if available)
- User profile (Lists borrowed books)
- Borrowing system (Includes a due date of 2 weeks)
- Model validations & error handling
- Tests for models, controllers, and views
git clone https://github.com/crypto-vin/LibraryApp.git
cd book-libraryEnsure you have Ruby, Rails, and PostgreSQL installed. Then run:
bundle installrails db:create
rails db:migrate
rails db:seedrails serverNow visit http://localhost:3000 in your browser.
To run the test suite, use:
rails test| Command | Description |
|---|---|
rails db:reset |
Drops, recreates, migrates, and seeds the database |
rails console |
Opens an interactive console to interact with models |
rails routes |
Lists all available routes |
rails log |
Shows logs for debugging |
For any questions, issues, or contributions, feel free to reach out:
📧 Email: vmulwah@gmail.com
🐙 GitHub: Vincent Munyalo
🌐 Website: My Website
This project is licensed under the MIT License.
Happy Coding! 🚀