Skip to content

Vjp888/book_club

Repository files navigation

Book Club

This is a student project from the Turing School of Software & Design as part of the Module 2 backend engineering curriculum. The purpose of this project was to build an application with Ruby on Rails that allows users to browse and review books. It is seeded with data for presentation purposes, however, it is fully functioning to add or remove books and book reviews.

It tested our abilities to setup a database with many-to-many relationships and implement CRUD functionality. The project was completed utilizing test-driven development and organized with a MVC structure.

Built With

Database Schema

Screenshot of Books index page

Installing

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

  • From your terminal, clone the repo: git clone [email protected]:Vjp888/book_club.git
  • If you do not have PostgreSQL, follow the steps to setup PostgreSQL here
  • Move to the new project directory: cd book_club
  • Install required gems by running: bundle install
  • Seed the application with data by running: rake db:{drop,create,migrate,seed}
  • Start up your local Rails server by running: rails server
  • View the application in your browser

Testing

RSpec was used for testing with gems Capybara and Shoulda-matchers. Test coverage was tracked with SimpleCov.

  • To run tests, from the root directory, run: rspec

Break down of tests

Tests in the spec/features folder test features simulating user interaction with the application and then expecting content on the page within specific CSS selectors.

Tests in the spec/models folder test the object models setup in the database. They contain validations for table attributes, table relationships, and also methods built with ActiveRecord to interact with the database.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published