Your complement to bouldering guides. Check the beta provided by MadBoulder. Powered by Flask and Folium, with a little help from Flask-Caching.
You can check it at: https://madboulder.org
This project complements MadBoulder's beta video library and makes it easier to navigate through the available information. It is NOT a topo guide of bouldering areas and has no intention of becoming so. It is intended to be used along the bouldering guides of each area and its main goal is to simplify and ease the process of finding beta for specific problems.
If you have any beta recorded feel free to drop it at https://madboulder.org/upload
You can visit the page at: https://madboulder.org
To build the project locally follow the next steps:
- Make sure you have Python3, Flask, Folium, Flask-Caching and Flask-Babel installed. Flask Mail is also used but it is not required. I recomend to install everything in a virtual environment. (After cloning the repository you can install the required packages with:
$ pip install -r /path/to/requirements.txt
) WARNING: There are several dependencies no longer required that are still present in the requirements file. - Clone the repository by tipying in a terminal
$ git clone https://github.com/MadBoulder/BetaLibrary.git
cd
toBetaLibrary
and run$ python generate_templates.py
and$ python generate_pages.py
. Additionally, to update the video database with new videos added to the channel, run$ python get_channel_data.py
.- Run
$ python application.py
and visithttp://127.0.0.1:5000/
Check the wiki for more information.
Documentation: https://pythonhosted.org/Flask-Babel/
- Open
config.py
and add the desired language locale to theLANGUAGES
list. - Create the language catalog:
$ pybabel init -i messages.pot -d translations -l [LOCALE]
, where[LOCALE]
should be replaced by the new locale.
To extract all the texts that are to be translated to the .pot
file use the following command:
$ pybabel extract -F babel.cfg -k _l -o messages.pot .
To update all catalogs with the latest set of messages:
$ pybabel update -i messages.pot -d translations
After all translations have been added or updated in the respective .po
files (found under translations/[LOCALE]/LC_MESSAGES/messages.po
), to make the changes effective the translations have to be recompiled. This is achieved with the following command: $ pybabel compile -d translations