Giter Club home page Giter Club logo

hackathon-portal's Introduction

hackathon-portal

Hackathon portal.

hackathon-portal's People

Contributors

kylekthompson avatar unkrich avatar emilyengle avatar

Stargazers

Kevin Payravi avatar

Watchers

 avatar  avatar  avatar

hackathon-portal's Issues

UsersController

this needs the following methods:
index, show, new, create, edit, update, destroy

everything but new and create should require authentication.

PledgesController

This will most likely be nested something like this: /sponsors/sponsor1/pledges/new

Only admins can create/view these.

Needs the following:
index, new, create, edit, update, destroy

requires authentication

Task Model

name string
description string
completed boolean
related_url string

has_many :sponsor_tasks
has_many :sponsors, :through => :sponsor_tasks

Sponsor can't access their (show) view

NoMethodError in SponsorsController#show
undefined method `contacts' for nil:NilClass

Extracted source (around line #67):

def verify_correct_user
  unless current_user.admin? || @sponsor.contacts.includes?(current_user)
    flash[:error] = "You are not authorized to view this page."
    redirect_to root_path
  end
end

SponsorsController

This is the main area for the sponsor/admin views (to see anything related to sponsors).

This needs the following:
index, show, new, create, edit, update, destroy

everything here requires authentication

User Model

first_name string
last_name string
email string
password_digest string
phone_number integer
username string
user_type enum (:hacker, :admin, :sponsor)

has_many :sponsor_users
has_many :sponsors, :through => :sponsor_users

Pledge Model

level enum (what are the sponsor pledge levels?)
pledge_type enum (:monetary, :inkind, :both)
amount_pledged integer
amount_paid integer
inkind_pledged integer
inkind_received integer
sponsor_id

belongs_to :sponsor

SponsorTask Model

sponsor_id integer
task_id integer

belongs_to :sponsor
belongs_to :task

SessionsController

this needs the following methods:
new, create, destroy

these are needed for login/logout

TasksController

This should only be accessible by admins and should have the following:
index, show, new, create, edit, update, destroy

authentication required

Sponsor Model

name string
logo string
registration_password string
active boolean
inactive_reason string
fiscal_year_start_month integer
notes text

has_many :pledges
has_many :sponsor_tasks
has_many :tasks, :through => :sponsor_tasks
has_many :sponsor_users
has_many :contacts => slightly gross SQL query
has_one :primary_assignee => gross SQL query
has_one :secondary_assignee => gross SQL query

SponsorUser Model

sponsor_id integer
user_id integer
role enum (:primary, :secondary, :sponsor)

belongs_to :user
belongs_to :sponsor

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.