This project was deprecated at the end of 2022. Since then we are going to reuse the learnings of this experience for a new solution that is going to delight ever more our users.
This Rails application aims to become a management system for away fans.
It should include two levels of users:
- administrators: can create new events, set the amount of seats/tickets, export list of participants for every event
- fans: can register for a match
In terms of models, it should include:
- users: credentials and permissions scope
- fans: people associated to a user account (first_name, last_name, date_of_birth, place_of_birth, fidelity_card_no)
- teams: name, country, url, image_url
- competitions (e.g. championship, national cup, European cup ...)
- events: date_time, competition, season, home_team, away_team, score, notes
- transport_means
- travels : event, transport_mean
- travel_seats: total, requested, reserved, available
- fan_travels: travel, fan, status
$ bundle exec sidekiq --environment development -C config/sidekiq.yml
Image optimization:
$ sudo apt install optipng
$ ls -1 *png | xargs optipng -dir optimized/ -strip all -o7
$ sudo apt install jpegoptim
$ ls -1 *jpg | xargs jpegoptim -doptimized --strip-all -v
- Add
:development
group to:test
only dependecies to load FactoryBot - Run
bundle exec rails c
Dir[File.expand_path('spec/factories/*.rb', __dir__)].sort.each { |file| require
file }
FactoryBot.create :user
User.first.active!
User.first.admin!
FactoryBot.create :event