OOP school library it will help implement OOP school library tasks.
Ruby
Server
- Add Person, Student, and Teacher classes.
- Use the "Decorator" design pattern.
- Add basic UI.
- Preserve data.
- Unit test.
To get a local copy up and running, follow these steps.
- Ruby
- VSCode or IRB
- Windows/Ubuntu/WSL
To install on Mac Os run following commands:
brew install rbenv ruby-build
# Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile
# Install Ruby
rbenv install 3.0.1
rbenv global 3.0.1
ruby -v
Installing Ruby on Windows is a little more difficult than installing it on another OS. We would recommend using WSL, but you can also try to install Ruby directly on your OS with rubyinstaller.
Note:
WSL only works on 64-bit installations of Windows.
If you are using a 64-bit version of Windows 10, we recommend following this article to install Ruby.
If you can not use WSL then you should follow these steps:
- Download the last version of RubyInstaller.
- Run RubyInstaller and follow the steps described here.
If you are familiar with docker, you could also use it.
git clone https://github.com/MICHAELKITH/oop-library.git
cd oop-library
ruby -v
The ouput should start with something like ruby 3.2.2
If not, install the right ruby version using rbenv (it could take a while):
rbenv install 3.2.2
bundle && yarn
ruby main.rb
👤 Michael Kithinji
- GitHub: @githubhandle
- Twitter: @twitterhandle
- LinkedIn: LinkedIn
- Unit tests- [ ] [In progress...]
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project please give me a star.
I would like to thank Microverse which provided me all knowledge about full stack development.
This project is MIT licensed.