Ruby version 3.2.2 (make sure you install the correct version of ruby)
Ruby on Rails version 7.0.4
Ruby and ROR Installation (Ubuntu, Mac, Windows)
git clone https://github.com/felix1251/xyz_books.git
cd xyz_books
Setup env variables for mysql credentials (create .env file inside project directory)
DB_NAME=xyz_books_db
DB_TEST_NAME=xyz_books_db_test
DB_USER=root
DB_PASSWORD=password
DB_HOST=0.0.0.0
DB_PORT=3306
docker compose run -d
bundle install
rails db:create
rails db:migrate
rails db:seed
Note: Expect warnings running rails db:seed command, because we are creating multple records at the same time for the purpose of having records in our db for the meantime. Though it won't break the app just a warning.
Reset Setup (Only if needed, not required)
rails db:reset
./bin/dev
ISBN13
978-1-60309-398-9
978-1-891830-85-3
ISBN10
1-603-09454-7
1-603-09038-X