- 📖 About the Project
- 💻 Getting Started
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- ❓ FAQ
- 📝 License
Welcome to the School Library app for OOP University! As the librarian, you can use this tool to manage the library's collection of books and keep track of who borrows them. This organized and intuitive app will help you:
- Add new students or teachers to the library.
- Add new books to the collection.
- Record who borrowed a specific book and when it was borrowed.
This project is built using Ruby, a dynamic, open-source programming language known for its simplicity and productivity. Ruby's elegant syntax and powerful features make it a popular choice among developers.
Visit the official Ruby Website website to learn more about the language and its capabilities.
This project is implemented using the Ruby programming language, known for its elegant syntax and flexibility. Ruby provides a suitable foundation for this Morse code decoding project due to its ease of use and string manipulation capabilities.
- Implementation of functions using
def ...end
syntax. - Display output using
puts ...
. - Create classes using
class ...end
syntax. - Preserve the data in
json
format. - Retrieve data from the existing file and save to the their relavent arrays
- Command-line Interface: Enhance the app by adding a command-line interface for easy interaction and management of the library's functions.
- Book Recommendations: Implement a feature that suggests related books to borrowers based on their borrowing history and interests.
- Notifications System: Develop a notifications system to remind borrowers of upcoming due dates for returned books.
- Clone the project repository:
git clone https://github.com/PabloBona/school_library.git
To set up the project locally, follow these steps:
- Clone the project repository:
git clone https://github.com/PabloBona/school_library.git
- Navigate to the project folder:
cd school_library
- An integrated development environment (IDE) like Visual Studio Code.
- Ruby installed on your machine.
- Git installed on your machine.
- A GitHub account for version control.
Follow these steps to use the program:
- Open your terminal.
- Navigate to the directory where the program files are located using the
cd
command.
cd /path/to/your/program/files
- Start the Interactive Ruby (IRB) console by typing
irb
and pressing Enter.
irb
- Inside the IRB console, load the
test.rb
file to execute the program.
load 'test.rb'
- The program will run, and you will see the output in the console.
maximilianus
Maximilianus
Maximilian
Classroom label: Math
Student 1: Alice (16 years old)
Student 2: Bob (17 years old)
Rental date: 2023-08-30
Rental person: John
Rental book: The Great Gatsby
Person's rentals: ["The Great Gatsby"]
Book's rentals: ["John"]
=> true
- To create a Person, Book or Rental object, use the following syntax:
ruby main.rb
You will see the following output in the console:
Welcome to OOP School Library Application!
Please choose an option by entering a number:
1 - List all books
2 - List all people
3 - Create a person(student or teacher)
4 - Create a book
5 - Create a rental
6 - List all rentals for a given person id
7 - Exit
- Enter the number corresponding to the option you want to execute and press Enter.
That's it! You've successfully executed the program.
Remember to replace /path/to/your/program/files
with the actual path to the directory where your program files are located.
👤 Pablo Bonasera
- GitHub: @PabloBona
- LinkedIn: @PabloBona
👤 Mohammad Anwar Hussaini
- GitHub: @Anwar Hussaini
- X: @Anwar Hussaini
- LinkedIn: Anwar Hussaini
👤 Dani Morillo
- GitHub: danifromecuador
- LinkedIn: danifromecuador
Q: How do I add a new student or teacher to the library? A: To add a new student or teacher to the library, you can leverage the methods provided in the Ruby script. There will be functions designed to facilitate the addition of new individuals to the library's database. Make sure to follow the usage instructions in the appropriate sections of the README.
Q: Is there a plan to add more features to this application? A: Yes, the development team has plans to enhance this application's capabilities. One upcoming feature is to make the application executable via the command line, providing more convenience and accessibility to users.
Q: How can I contribute to the School Library (OOP) project? A: Contributions are highly encouraged! If you have ideas, suggestions, or identify issues, please feel free to submit them through the project's GitHub repository. Refer to the contributing guidelines for more details.
Q: Where can I find more information about the Ruby programming language? A: For more information about Ruby, its features, and its community, visit the official Ruby website.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
If you find this project helpful, consider giving it a ⭐️ to show your support!
I would like to thank Microverse and all my peers and colleagues at Microverse for giving me the opportunity to work on this project.
This project is MIT licensed.