Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

188 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GA-Hackathon - Live Link

General Assembly Hackathon

Full Stack App built for our WDI Group Project

GA-Hackathon was built as a way for General Assembly students and alumni to come together for a weekend full of hacking in an environment that is comfortable and collaborative.

Users will be able to create a profile, create new ideas, upvote their favorite ideas and RSVP for hackathon events.

Feel free to fork / star / watch for your own personal use.

See the published project at ga-hackathon.herokuapp.com!

Future Development

Allow admins to create and edit hackathon events. Automate team assignments equally based on students selected class. Add the ability for ideas to contain multimedia.

#Entity-Relationship Diagram

#Technologies Used

####Languages: HTML5, JavaScript, CSS, Ruby ####External Libraries: jQuery, Bootstrap ####Frameworks: Rails

Code We're Proud Of


Greice: I chose this code given the challenge I had of making bootstrap examples work with rails form_for.
```ruby class User < ApplicationRecord COURSES = ['WDI','UXDI','DSI','iOSDI','ADI'] end

<%= form_for @user do |f| %>

<%= f.label :select_class, class:"input_field_label" %> <%= f.collection_select :course, User::COURSES, :to_s, :to_s,:include_blank => true %>
<%= f.submit "Save", class:"btn btn-danger" %> <% end %> ```
Zach: This piece of code creates our RSVP feature on the event show page.
```ruby #event_user controller def build @event = Event.friendly.find(params[:event_id]) @user = current_user @event.users << @user redirect_to :back end

#event_show page <% if !current_user %> <%= form_for([@event, @event.users.build]) do |f| %> <%= f.submit "RSVP", class: "btn btn-danger pic-large" %> <% end %> <% else %> <%= form_for([@event, @event.users.build]) do |f| %> <%= f.hidden_field :user_id, value: current_user.id %> <% if @event.users.include? current_user %> <%= f.submit "Happy Coding!", class: "btn btn-danger pic-large", disabled: "true" %> <% else %> <%= f.submit "RSVP", class: "btn btn-danger pic-large" %> <% end %> <% end %> <% end %>

<hr>
Shiv: I chose this code because I have a hard time understanding the relationships when they are implemented into the app itself. The uniqueness is a nice touch because that ensures that that field has not been taken before.
<hr>
```ruby
has_secure_password
  mount_uploader :photo, PhotoUploader
  has_many :ideas, dependent: :destroy
  has_many :events_users
  has_many :events, through: :events_users
  validates :email, uniqueness: true
  validates :username, uniqueness: true

Alex: This code sorts and limits the amount of ideas that display on the front page.
```ruby //welcomecontroller.rb sorted_ideas = Event.first.ideas.sort_by &:cached_votes_up @ideas = sorted_ideas.reverse

//welcome#index <% @ideas.take(3).each do |p| % >


## Screen Shots
<img src="http://i.imgur.com/YbZPdGO.jpg" width="600">
<hr>
<img src="http://i.imgur.com/YN4sRig.png" width="600">
<hr>
<img src="http://i.imgur.com/08s5qvJ.png" width="600">

## Trello Board
[Wireframes, Database models & Sprint Planning](https://trello.com/b/O2z9teqw/project-2)

### Contributors
[Greice Silva](https://github.com/greicens), [Zach Cusimano](https://github.com/c00z), [Alex Piane](https://github.com/aapiane09) & [Shivinder Gogna](https://github.com/shivngiggles)

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages