Betting portal made in Ruby on Rails. Project was discontinued in 2016.
- Adding matches (CRUD)
- Adding teams (CRUD)
- Login & register
- Last predictions (bets) view
- Matches list view
- User profile view with predictions history
- Single match view with pie chart how users predicted
To get started with the app, clone the repo and then install the needed gems:
$ cd /path/to/repos
$ git clone https://github.com/karlosos/euro2016.git euro2016
$ cd euro2016
$ bundle install --without production
Next, migrate the database:
rake db:migrate
And run server:
rails server
Added Dockerfile
in 2022 as it's not possible to run this app on newer OS because of some old dependencies.
Managed to run this app and install dependencies on Debian 8 (jessie) with Ruby 2.1 and Node 12. See Dockerfile. To build the app using docker run:
docker compose build
docker-compose run rails-app rake db:reset
docker-compose run rails-app rake db:migrate
docker compose up
Open http://localhost:3000 to access the app.