Git Product home page Git Product logo

pavel-anisimov / goalsplus Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 2.0 992 KB

Web app for soccer scores predictions. Written in Ruby with a purpose to learn Ruby on Rails. Written from a scratch in a short period of time (2 month) right before the Soccer World Cup 2014. Further development is frozen until 2016 (Soccer Euro 2016).

Home Page: http://www.goals.club

License: MIT License

Ruby 97.41% JavaScript 2.56% CSS 0.02%

goalsplus's People

Contributors

pavel-anisimov avatar

Watchers

 avatar

goalsplus's Issues

Create Rules Page

Need to copy a rules page from the old project.
At this point rules are not explained.

Awards system

Create a system where user can get awards (serious and funny ones).

Like if a user scores 3 points 3 times in a row, be will get a Ronaldo award
Not getting points 5 times in a row - Kerzhakov award
Scoring in a row for a longest period (some other award).

Awards should represent icons and show next to a users's name

Pending Registration

User registers on the page and gets his pending account with guest permissions.
Admin gets a notification that there is a new user. He can aprove or decline the new user.

Individual guess page

A page where user can see only his guesses

Man Utd vs Fulham (3pts)
AFC Wrexham vs Newport County (1pt)

Create "About Page"

Need a page with "about" info.

about author
about the project
technical info

News Conveer

For the front page create a jQuery generated news block changing dynamically (rotating or something).

Fix form redirects

Some forms (like submit the score) must redirect to self (since they are ajax forms).

Change in controller JSON to be the first respond.

Display returned messages (errors or confirmations)

Fix the "Match Editing" form

Edit the match form is in raw code without styling.
Need to fix it with accordance with of template layout.
Need to link it with other data (stadium -> city -> tz etc)

News autogenerator

Make sure that when something interesting is happening:

  • like somebody scored more then 3 points
  • Somebody scored an award
  • New match has been added
  • Somebody new has joined the project

Automatic news population

Create an automatic news auto-generation.
For example, when a new person joins the system, a news is generated.
When somebody scores 3 points or more, a news is generated.
When the leader in the table is changed, the news is generated for that.

Team and club logos

Create an ability to add team and club logos, national flags so they are displayed next to the team name.

User avatars

Make sure that users are able to create their own avatars with size 100x100 or something.

They should be able to upload an image from the settings page, and the avatar should be renamed to their user id name with png extension. Like 21.png

User Settings

By default user has setting id = 1 (default setting).

Until he goes and fixes his settings, he should se a message on top with reminder to fix settings.

Enhance standings page

Need to update last form table.

Here's a relevant script:

select u.id,
u.screen_name,
max(case when rn=1 then points end) m1,
max(case when rn=2 then points end) m2,
max(case when rn=3 then points end) m3,
max(case when rn=4 then points end) m4,
max(case when rn=5 then points end) m5,
SUM(m.points) pts
from (select users.id id, screen_name from users, settings where users.setting_id = settings.id) u
join (
select
user_id,
points,
@rn:=IF(user_id=@prevUserId,@rn+1,1) rn,
@prevUserId:=user_id,
m_date
from
(select m.id match_id, guesses.id as g_id, points, user_id, date m_date
from guesses, (select * from matches where date < '2014-05-13 13:17' order by date DESC limit 5) m
where guesses.match_id = m.id order by m.date) t
join (select @prevUserId:= 0, @rn:= 0) g
order by user_id, m_date desc
) m on u.id = m.user_id
group by u.id, u.screen_name
order by pts DESC, m1 DESC, m2 DESC, m3 DESC, m4 DESC, m5 DESC

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.