henryhuypham / CoderTicket

The CoderSchool Ticket Buying Website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Homework 3 - Name of App

H-Coder-Ticket is a Ruby on Rails blog application that allows users to create and buy tickets to cool events.

Submitted by: Huy Pham

Time spent: 24 hours

URL: https://h-coder-ticket.herokuapp.com/

SimpleCov Test Coverage: Insert percentage or link to report here

User Stories

The following required functionality is complete:

  • 10 model tests, 2 route tests, 2 controller tests, 2 view tests.

Events

  • Users can see a list of upcoming events. Past events should not be shown. HINT: Good candidate for a test.
  • Users can search for events from the homepage.
  • Users can click on an event to see details about the event.
  • Users can click on "Book Now" to go to a page to purchase tickets.

Tickets

  • Each event can have multiple types of tickets, each with a different price and max_quantity.
  • Users can buy tickets to an event, choose the types of tickets, and the quantity of tickets.
  • Users cannot buy more tickets than the quantity available.
  • Users can only buy up to 10 of a ticket type at a time.
  • Users cannot buy tickets to events that occur in the past.

Users

  • User can sign up by providing their email, password, and name.
  • User can login using an email and password.
  • Users can create events.
  • Users must click "publish event" before an event becomes viewable to other users.
  • Users can create ticket types for that event.
  • Users can create venues.
  • An event must have at least one ticket_type defined before it can be published.
  • User can see a list of events he or she has created.
  • Users can edit their event after creation. But only the user who created the event can edit the event.

Optional Stories

  • Users can log in with Facebook.
  • Users receive an email when they have purchased a ticket.
  • Users can see "related events" when browsing an event. Related events should belong to the same category and be in the same region.
  • User A can allow User B to edit User A's event. In other words, an event owner can assign other people to be "event admins".
  • Ticket types have an optional "minimum" purchase quantity. (Example Screenshot)
  • Events are automatically labeled as "Hot". "Hot" events should have a red border or some sort of visual flourish. The event title should also be prefixed with "HOT:".
  • Instead of showing all of the events on the main page, an "admin" user can dictate the events that show up on the main page.

Notes

I made a youtube video here: https://youtu.be/cu_Pf-7-Ex0, instead of a gif video.

License

Copyright [2016] [Huy Pham]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

The CoderSchool Ticket Buying Website


Languages

Language:Ruby 71.1%Language:HTML 18.6%Language:CSS 8.9%Language:CoffeeScript 0.7%Language:JavaScript 0.6%