This is a Sinatra based app to track library books.
Setup Instructions : After the repo has been cloned and gems installed (bundle install), here are the steps :
- Create a mysql database named openlibrary_dev
- For creating tables in db : rake db:migrate
- Import data for users and books from the CSVs using following : MODEL=Book ruby scripts/load_csv.rb data/books.csv MODEL=User ruby scripts/load_csv.rb data/users.csv
- To run the app use shotgun
- The app can be accessed at localhost:9393