Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mberlanda/cheidelacoriera
This Rails application aims to become a management system for away fans.
https://github.com/mberlanda/cheidelacoriera
Last synced: 19 days ago
JSON representation
This Rails application aims to become a management system for away fans.
- Host: GitHub
- URL: https://github.com/mberlanda/cheidelacoriera
- Owner: mberlanda
- License: gpl-3.0
- Created: 2017-09-22T19:34:41.000Z (about 7 years ago)
- Default Branch: gruppi-old
- Last Pushed: 2024-04-23T12:58:23.000Z (7 months ago)
- Last Synced: 2024-05-11T21:30:03.316Z (6 months ago)
- Language: Ruby
- Size: 14.6 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 37
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cheidelacoriera
> 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.[![Build Status](https://travis-ci.org/mberlanda/cheidelacoriera.svg?branch=master)](https://travis-ci.org/mberlanda/cheidelacoriera)
[![Maintainability](https://api.codeclimate.com/v1/badges/19dac7a302ec55f5cd95/maintainability)](https://codeclimate.com/github/mberlanda/cheidelacoriera/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/19dac7a302ec55f5cd95/test_coverage)](https://codeclimate.com/github/mberlanda/cheidelacoriera/test_coverage)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 matchIn 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### How to run the queue
```
$ 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
```### Create test data in development environment
* 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
```