Le site de l'AFPy.
Go to file
2021-10-19 15:21:39 +02:00
.github/workflows FIX: s/sentry/sentry-sdk[flask]/ 2021-07-02 09:45:41 +02:00
afpy Wrong IRC page URL according to discuss.afyp.org. 2021-10-19 14:34:18 +02:00
.env.template Backend Architecture redo (#58) 2021-07-02 09:21:36 +02:00
.flake8 Backend Architecture redo (#58) 2021-07-02 09:21:36 +02:00
.gitignore Backend Architecture redo (#58) 2021-07-02 09:21:36 +02:00
.pre-commit-config.yaml Backend Architecture redo (#58) 2021-07-02 09:21:36 +02:00
LICENSE Initial commit 2017-09-21 14:47:07 +02:00
Makefile Backend Architecture redo (#58) 2021-07-02 09:21:36 +02:00
pyproject.toml Backend Architecture redo (#58) 2021-07-02 09:21:36 +02:00
README.md FIX: Typo 2021-10-19 15:21:39 +02:00
requirements-dev.txt Backend Architecture redo (#58) 2021-07-02 09:21:36 +02:00
requirements.txt FIX: Requirements update 2021-10-02 10:46:33 +02:00
run.py Backend Architecture redo (#58) 2021-07-02 09:21:36 +02:00
tests.py Backend Architecture redo (#58) 2021-07-02 09:21:36 +02:00
xml2sql.py Backend Architecture redo (#58) 2021-07-02 09:21:36 +02:00

AFPy.org

Site Web de l'AFPy.

Tester localement

Commencez par un make install

Ensuite, mv .env.template .env en remplacant les valeurs nécéssaires.

Créez le répertoire des images: images à la racine du projet (ou ailleurs, configuré via IMAGES_PATH dans le .env).

Puis un make serve suffit pour tester localement sans article.

Si vous voulez des articles, lancez un tar xjf posts.tar.bz2 d'abord, puis un python xml2sql.py ce qui remplira la DB

/!\ the default admin user is `admin:password

Tester

make test

Déployer

Pour publier il suffit de git push, une action github s'occupe de la mise en prod.