Skip to content

XYZ Books is an application that can get information from students, college textbooks, and other course material. It has functionalities like displaying applicable product data (e.g., authors, publishers, etc) or converting an ISBN (i.e., International Standard Book Number) to and from different formats.

Notifications You must be signed in to change notification settings

felix1251/xyz_books

Repository files navigation

XYZ Books

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)

Live App

Clone Repo

git clone https://github.com/felix1251/xyz_books.git
cd xyz_books

ENV Variables

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 Container

docker compose run -d

Install Dependencies

bundle install

Active Record

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

Run Local Server

./bin/dev

Sample ISBN values to search

ISBN13

978-1-60309-398-9
978-1-891830-85-3

ISBN10

1-603-09454-7
1-603-09038-X

About

XYZ Books is an application that can get information from students, college textbooks, and other course material. It has functionalities like displaying applicable product data (e.g., authors, publishers, etc) or converting an ISBN (i.e., International Standard Book Number) to and from different formats.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published