Skip to content

Book Reviews: A Rails app to demonstrate my coding skills, where users can browse, read, and leave reviews on books

Notifications You must be signed in to change notification settings

mattia-malnis/book-reviews

Repository files navigation

Book Rreviews

Note

This is an example project to demonstrate my coding skills. It is not actively maintained.

Local Development Setup

Requirements

  • Ruby 3+ (check .ruby-version)
  • PostgreSQL 16+

App setup

After installing Ruby and PostgreSQL, follow these steps:

  1. Run bundle install to install all necessary Gems;
  2. Run bin/setup to prepare the database;
  3. Run rake import:books to import some books from bigbookapi.com;
  4. Run rake fake_data:users and rake fake_data:reviews if you want to create some users and reviews
  5. Execute bin/dev to run the app locally.

Using Big Book API

This application integrates with the Big Book API to import books. To enable this feature:

  1. Sign up for an API key at Big Book API;
  2. Set the BIGBOOK_API_KEY environment variable in your shell or environment management tool.

App features

  • Provides a list of books that users can search and browse.
  • Users can read reviews of books.
  • Registered users can leave reviews for books.
  • Registered users can vote reviews.
  • Users have a personal profile page where they can:
    • Edit their profile information.
    • View the reviews they have written.

Testing

Test the application with RSpec by running the command bundle exec rspec.

Screenshots

Books listing

immagine

About

Book Reviews: A Rails app to demonstrate my coding skills, where users can browse, read, and leave reviews on books

Resources

Stars

Watchers

Forks