Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 2.29 KB

README.md

File metadata and controls

59 lines (42 loc) · 2.29 KB

Little Esty Shop - Final Solo Project

This is a collaborative Ruby on Rails project that allows users and admins to manage items, invoices, and discounts in a simplified e-commerce platform. The application demonstrates key Rails features such as MVC architecture, RESTful routing, Active Record, and thorough test coverage.

Features

User-Facing Features

  • Browse Items: Users can explore available items with details like price and stock.
  • Invoice Management: Users can view their invoices, with detailed information on purchased items, quantities, and discounts.
  • Discounts: Discounted prices are automatically applied based on item quantity thresholds.
  • Admin Features

  • Dashboard Overview: Admins can access a dashboard summarizing key business metrics.
  • Manage Items: Admins can create, update, and deactivate items in the store.
  • Invoice Management: Admins can view and update the status of invoices.
  • Discount Management: Admins can define quantity-based discounts for items.
  • Technology Stack

  • Backend: Ruby on Rails
  • Database: PostgreSQL
  • Testing: RSpec, Capybara
  • Other Tools: Active Record, Heroku (deployment)
  • ER Diagram

    Screenshot 2024-06-06 at 3 35 04 PM

    Setup

    • Fork this repository
    • Clone your fork
    • From the command line, install gems and set up your DB:
      • bundle
      • rails db:create
    • Run the test suite with bundle exec rspec.
    • Run your development server with rails s to see the app in action.

    Phases

    1. Database Setup
    2. User Stories
    3. Extensions
    4. Evaluation

    Testing

    This project follows Test-Driven Development (TDD) principles, achieving 100% test coverage with over 125 tests. The test suite uses RSpec and Capybara to ensure reliability.

    Run the test suite: rspec

    Authors