1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00
apps/store
dependabot[bot] 43aebcce8b
Bump werkzeug from 3.0.2 to 3.0.3 in /store (#2312)
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08 14:59:52 +02:00
..
.stars appstore: small refactoring, proper cache/refresh mechanism for catalog and wishlist 2023-09-03 12:11:56 +02:00
assets store: misc tweaks to simplify code and development (#2309) 2024-05-08 14:57:28 +02:00
templates store: misc tweaks to simplify code and development (#2309) 2024-05-08 14:57:28 +02:00
translations Translated using Weblate (Galician) for appstore (#2307) 2024-05-08 13:25:37 +02:00
.gitignore add '.wishlist_ratelimit' to the '.gitignore' 2024-03-22 23:18:11 +01:00
__init__.py appstore: small refactoring, proper cache/refresh mechanism for catalog and wishlist 2023-09-03 12:11:56 +02:00
app.py store: misc tweaks to simplify code and development (#2309) 2024-05-08 14:57:28 +02:00
babel.cfg appstore: initialize i18n stuff 2023-09-05 20:46:28 +02:00
config.toml.example appstore: small refactoring, proper cache/refresh mechanism for catalog and wishlist 2023-09-03 12:11:56 +02:00
gunicorn.py 🎨 Format Python code with Black 2024-03-12 22:25:39 +01:00
messages.pot store: update tos link 2024-05-07 23:21:18 +02:00
nginx.conf.example appstore: Add gunicorn, systemd, nginx conf snippets for deployment 2023-08-23 15:41:51 +02:00
README.md doc(store): correct link to flask-babel homepage 2024-03-20 03:20:05 +01:00
requirements.txt Bump werkzeug from 3.0.2 to 3.0.3 in /store (#2312) 2024-05-08 14:59:52 +02:00
systemd.conf.example appstore: Add gunicorn, systemd, nginx conf snippets for deployment 2023-08-23 15:41:51 +02:00
utils.py 🎨 Format Python code with Black 2024-03-12 22:25:39 +01:00

YunoHost app store

This is a Flask app interfacing with YunoHost's app catalog for a cool browsing of YunoHost's apps catalog, wishlist and being able to vote/star for apps

Developement

python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
cp config.toml.example config.toml

# Tweak config.toml with appropriate values... (not everyting is needed for the base features to work)
nano config.toml

# You'll need to have a built version of the catalog
mkdir -p ../builds/default/v3/
curl https://app.yunohost.org/default/v3/apps.json > ../builds/default/v3/apps.json

# you need to manually download the assets to have access to the css and the javascript files
(cd assets && bash fetch_assets)

# You will also want to run list_builder.py to initialize the .apps_cache (at least for a few apps, you can Ctrl+C after a while)
pip3 install tqdm GitPython
pushd ..
    ./tools/list_builder.py
popd

And then start the dev server:

source venv/bin/activate
FLASK_APP=app.py FLASK_ENV=development flask --debug run

Translation

It's based on Flask-Babel : https://python-babel.github.io/flask-babel/

source venv/bin/activate

# Extract the english sentences from the code, needed if you modified it
pybabel extract --ignore-dirs venv -F babel.cfg -o messages.pot .

# If working on a new locale: initialize it (in this example: fr)
pybabel init -i messages.pot -d translations -l fr
# Otherwise, update the existing .po:
pybabel update -i messages.pot -d translations

# ... translate stuff in translations/<lang>/LC_MESSAGES/messages.po
# re-run the 'update' command to let Babel properly format the text
# then compile:
pybabel compile -d translations