Skip to content

skye-cyber/ShelfShare

Repository files navigation

Book Lending Library

A simple Ruby on Rails application to manage a book lending library.

Setup

  1. Clone the repository:
git clone https://github.com/skye-cyber/ShelfShare.git
cd ShelfShare
  1. Install dependencies:
bundle install
  1. Set up the database:
rails db:create
rails db:migrate
  1. Run the application:
rails server
  1. Open your web browser and visit http://localhost:3000 to see the application.

Usage

List all books:

Navigate to the home page (http://localhost:3000). list-preview

Add a new book:

Click on Add New Book to add a new book to the library. list-preview

View book details:

Click on a book title to see its details and borrowing history. list-preview

Edit a book:

Click on Edit next to a book to modify its details. list-preview

Delete a book:

Click on "Delete" next to a book to remove it from the library.

Borrow a book:

From a book's details page, click on Borrow this Book to borrow it. Enter the borrower's name and submit the form. list-preview

Return a book:

From a book's details page, click on Return next to a borrowing entry to mark it as returned. Testing

To run the tests for the application, use the following commands:

Run tests:

rails test

Contribution

Feel free to contribute to the project by opening issues or pull requests. Make sure to follow the existing code style and conventions.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

See the LICENSE file for more details. See the LICENSE file for details.


Contact

For questions, feedback, or support, feel free to reach out:


About

A simple Ruby on Rails application to manage a book lending library

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published