Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rubenvanerk/lifesavingrankings
Lifesaving Rankings tracks results for lifesaving pool competitions
https://github.com/rubenvanerk/lifesavingrankings
lifesaving rankings
Last synced: 28 days ago
JSON representation
Lifesaving Rankings tracks results for lifesaving pool competitions
- Host: GitHub
- URL: https://github.com/rubenvanerk/lifesavingrankings
- Owner: rubenvanerk
- License: mit
- Archived: true
- Created: 2018-01-14T12:45:17.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T04:27:11.000Z (almost 2 years ago)
- Last Synced: 2024-08-04T01:15:00.958Z (4 months ago)
- Topics: lifesaving, rankings
- Language: Python
- Homepage: https://www.lifesavingrankings.com/
- Size: 39.4 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- open-production-web-projects - lifesavingrankings - Lifesaving Rankings tracks results for lifesaving pool competitions (Python / Django)
README
# lifesavingrankings
Lifesaving Rankings tracks results for lifesaving pool competitions
Relies on [lifesavingrankings-parser](https://github.com/rubenvanerk/lifesavingrankings-parser) to get the data.
Lifesaving Rankings has two main parts: rankings and analysis
## Rankings
Rankings is the representation of the database in understandable and browsable format. Users can view competitions, events or athletes with their associated results.## Analysis
In Analysis users can create groups of athletes. These groups get analysed on two fronts: individual and relay analysis.
In individual analysis the personal bests of each athlete are compared a set time, which is usually the 16th time of the previous World Championships.
In relay analysis all possible combinations of 6 (maximum team size on world/european championships) are generated. For each of this generated team, every possible combination and the total time on the relays is calculated and recorded. These times are added up for each possible team and possible teams are ordered on this added up times## Setup
### Prerequisites
This project uses Pipenv, make sure [you have it installed](https://pipenv.pypa.io/en/latest/install/).
### Installation
- Create a Postgresql database
- Execute `CREATE EXTENSION unaccent;` in your database
- Copy `.env.example` to `.env`
- Edit the environment variables to your situation
- Run `pipenv install`
- Run `pipenv shell`
- Run `npm install` in `lifesaving_rankings/static`
- Run `gulp build` in `lifesaving_rankings/static`
- Run `python manage.py migrate`
- Run `python manage.py loaddata rankings`
- Run `python manage.py runserver`To create a new superuser for `/admin` run: `python manage.py createsuperuser`
## Production
- `zappa update production`
- `zappa manage production "collectstatic --noinput"`