Skip to content

MadBoulder/BetaLibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BetaLibrary

Website madboulder.org

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


Main Page


Zones Map


Sector Map

About

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

Usage

You can visit the page at: https://madboulder.org

To build the project locally follow the next steps:

  1. 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.
  2. Clone the repository by tipying in a terminal $ git clone https://github.com/MadBoulder/BetaLibrary.git
  3. cd to BetaLibrary 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.
  4. Run $ python application.py and visit http://127.0.0.1:5000/

Information for developers and contributors

Check the wiki for more information.

Translations

Documentation: https://pythonhosted.org/Flask-Babel/

Add new language

  1. Open config.py and add the desired language locale to the LANGUAGES list.
  2. Create the language catalog: $ pybabel init -i messages.pot -d translations -l [LOCALE], where [LOCALE] should be replaced by the new locale.

Extracting/Updating translations

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

Compile 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