Book-Trader is a Ruby on Rails application that you can Sign in , share books, and trade books with another users. It uses MVC pattern and renders serverside HTML to the view.
For Styling: bootstrap
For Authentication: Devise
Application Link: booktrader
Used Rspec and cappybara together for testing. For all tests: Run in root directory of the project
bundle exec rspec
Run for specific test:
bundle exec rspec spec/cappybara/signin_spec.rb
This command runs rspec cappybara spec with selenium driver. It opens a chrome tab and tests can be seen step by step. https://github.com/teamcapybara/capybara
You can searh all books on the project with the searchbar inside the navigation bar. It searches the book titles in the database and show results on a different page.
Datatable is a js library. With datatable you can add advanced interaction controls to your html table and it is simple to use. You can test it with https://infinite-fortress-91603.herokuapp.com/books clicking this link.
git clone git@github.com:sezeristif/Book-Trader.git
cd project
ruby -v
If not, install the right ruby version using rbenv (it could take a while):
rbenv install 2.7.1
Using Bundler:
bundle install
rails db:create
rails db:migrate
rails db:seed
rails s