Last active
November 14, 2023 06:44
-
-
Save alexshapalov/59c48cd0a3fa8ca872e770d7b1f6017c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test Task: Bookstore Rails Application | |
Objective: | |
Develop a Rails web application for a bookstore. | |
Requirements: | |
Models: | |
Create the following models with the specified fields and associations: | |
- Book: title, author, price, published year, genre. | |
- User: name, email, password (with secure password handling). | |
- Order: user_id (references User), total_price, status (e.g., pending, completed). | |
- OrderItem: order_id (references Order), book_id (references Book), quantity, item_price. | |
- Review: book_id (references Book), user_id (references User), rating, comment. | |
User Interface: | |
Develop a basic user interface to interact with the application. | |
Users should be able to: | |
- Create, read, update, and delete (CRUD) reviews for books. | |
- View and purchase books (Just a basic version, one click to buy (save in DB) | |
- View their order history. | |
- Sign up, log in, and log out. | |
Tests: | |
Write comprehensive tests for your models, associations, and additional logic using RSpec. | |
Submission: | |
Submit your code via a GitHub repository. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment