Skip to content

crypto-vin/LibraryApp

Repository files navigation

📚 Book Lending Library (Ruby on Rails 8)

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.

🚀 Features

  • 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

🛠️ Setup & Installation

1️⃣ Clone the Repository

git clone https://github.com/crypto-vin/LibraryApp.git
cd book-library

2️⃣ Install Dependencies

Ensure you have Ruby, Rails, and PostgreSQL installed. Then run:

bundle install

3️⃣ Set Up the Database

rails db:create
rails db:migrate
rails db:seed

4️⃣ Start the Server

rails server

Now visit http://localhost:3000 in your browser.


🧪 Running Tests

To run the test suite, use:

rails test

🔗 Useful Commands

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

📞 Contact

For any questions, issues, or contributions, feel free to reach out:

📧 Email: vmulwah@gmail.com
🐙 GitHub: Vincent Munyalo
🌐 Website: My Website


📜 License

This project is licensed under the MIT License.

Happy Coding! 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors