Skip to content

AmberWilkie/bb-auction

Repository files navigation

Demo basic auction site

Installation

  • git clone https://github.com/AmberWilkie/bb-auction
  • rvm use 2.5.3 (or later version of Ruby)
  • bundle
  • rails db:migrate
  • rails db:seed
  • Sample user: verona@verona.com, Verona. Seeds generate email and password pairs in this pattern, using first names (see seed file).
  • Tests with Rspec: rspec

Dependencies

  • Devise for user creation and authentication.
  • RSpec for testing.
  • Pry for debugging.
  • Bootstrap for styling templates.
  • Faker for lorem ipsum text (but not for names and emails to make it easier to move between users).

Special thanks

To Start Bootstrap for the HTML and CSS templates.

Ideas for improvement

These ideas would improve the code base, but I chose not to implement them because of time considerations:

  • Concurrency issues. If two people bid on a product at the same time, it will create potential problems with one overwriting the other. Temporary database locking would solve the issue in this simple app.
  • Testing. I chose to test the BidCreator service but not other parts of the code. In a production application, acceptance testing and model specs would be required.
  • Managing bids. Users should be able to manage the bids they have placed. Potentially they might cancel a bid.
  • Styling and UX. I've added some basic styling but there is obviously a lot more to be done in terms of a pleasant user experience.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published