Skip to content

Sidarth20/relational_rails

Repository files navigation

Relational Rails

About

Relational Rails is a rails app using two one to many relationships built in 10 days, that allow users to CRUD resources. This repo serves as an introduction to building simple Rails apps. It was assigned as a project for Module 2 of the Backend Development program for the Turing School of Software and Design.

  1. Start the server- rails s
  2. 👀 Visit the app on Localhost:3000

100% test coverge!

Local Setup

  1. Fork and Clone the repo
  2. Install gem packages: bundle install
  3. Setup the database: rails db:create
  4. Run migrations: rails db:migrate
  5. Seed the database: rails db:seed

Database Design

database schema diagram

Important Gems

Testing

Testing

  • RSpec and Capybara were used for unit and integration testing and project development adhered to TDD principles.
  • WebMock was used to stub out API requests and actual requests are blocked from the test environment.
  • Simplecov was used to track total test coverage.
  • To run our test suite, RSpec, enter $ bundle exec rspec in the terminal.
  • To see a coverage report enter $ open coverage/index.html
  • SimpleCov test coverage is at 100.00%:

Relational Rails Coverage Report

Versions

  • Ruby 2.7.2

  • Rails 5.2.5

Authors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages