GithubHelp home page GithubHelp logo

fandangr's People

Contributors

elizahyde avatar

Watchers

 avatar  avatar  avatar

fandangr's Issues

Write user auth test then Add User Auth

Tests

  • User must be signed in to buy ticket aka can only view available seats
  • User can only buy R rated tickets if 18
  • Username cannot be already taken in signup
  • If change password built, password needs to be saved

Define Models

  • movies -> has_many :tickets; has_many :users, through :tickets
    • name
    • rating
    • duration
    • synopsis
  • tickets -> belongs_to :movie, belongs_to :user
    • date
    • time
    • seat
    • movie_id
    • user_id
  • users -> has_many :tickets; has_many :movies, through :tickets
    • name
    • age
    • username
    • password_digest:string

Write tests for models

  • tickets must have date/time
  • tickets must be attached to a movie
  • tickets do not need to be created with a user but they do belong to a user.
  • users and movies are connected through tickets
  • when a user purchases a ticket, the user_id column int ickets must be updated (this action won't happen until after the seat buying milestone)

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.