Note
This is an example project to demonstrate my coding skills. It is not actively maintained.
- Ruby 3+ (check
.ruby-version
) - PostgreSQL 16+
After installing Ruby and PostgreSQL, follow these steps:
- Run
bundle install
to install all necessary Gems; - Run
bin/setup
to prepare the database; - Run
rake import:books
to import some books from bigbookapi.com; - Run
rake fake_data:users
andrake fake_data:reviews
if you want to create some users and reviews - Execute
bin/dev
to run the app locally.
This application integrates with the Big Book API to import books. To enable this feature:
- Sign up for an API key at Big Book API;
- Set the
BIGBOOK_API_KEY
environment variable in your shell or environment management tool.
- 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.
Test the application with RSpec by running the command bundle exec rspec
.