Giter Club home page Giter Club logo

rails-practice-pair-bingo's Introduction

Rails Practice - Pair Bingo

Setup

  • bundle
  • rake db:create db:migrate db:seed
  • rails s

You can run specs with:

  • rspec

Note: email/password combinations for existing users populated by rake db:seed can be found in the db/seeds.rb file.

Stories

Users can track who they've paired with

As a user
When I login
And I click on the image of a colleague
Then I should be able to enter a date when I paired with them
(And I must enter a date)
And when I create the pairing then their image should appear grayed out
And the date I paired with the person should appear underneath the picture

If you've already paired with a person, their picture should not be clickable

As a user
When I login
And I have already paired with people
Then their grayed-out pictures should not be clickable

Users cannot enter a date in the future

When I go to create a pairing
Then I should not be able to enter a date in the future

When you pair with someone, the picture should appear grayed out and unclickable for them as well

As a user
When I login
And somebody else marked that they paired with me
Then their picture should appear grayed out and unclickable

CHORE: make it use fewer database queries

Write your code in such a way that the index page only
executes a maximum of 4 queries (check the logs to confirm).

You can actually do it in 3 if you are crafty enough :)

Wireframes

Index page

New Pairing Page

NOTE: the url was left off intentionally, so you can figure it out.

New Pairing Page with Errors

References

rails-practice-pair-bingo's People

Contributors

vandosant avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.