Feedya is like a russian name Fedor [ˈfʲɵdər].
Naive Feedya is a small news feed with simple web UI and filtering algorithm based on Naive Bayes classifier. Now it supports only russian and english languages.
- Pull image
docker pull antonsve4/naive-feedya:main
- Run image
docker run -it \
-e USERNAME=YOU-USERNAME -e PASSWORD=YOUR-PASSWORD -e CONFIG_NAME=your-conf.ini \
/usr/share/python3/app/bin/python3 main.py
Check localhost:8008/news or localhost:8008/spam.
- Run project using docker-compose:
docker-compose -f docker-compose.dev.yml up
Check localhost:8008/news or localhost:8008/spam.
DEV_MODE– boolean switcher of development mode, default valuefalse.USERNAME– username to login, required for production mode.PASSWORD– password to login, required for production mode.APP_LANG– language of the parser, defaultenglish.CACHE_PATH– path to cache folder to store feeds and classifier data, default value/var/lib/naive_feedya/.CONFIG_NAME– name of a feeds config, required for production mode.PATH_PREFIX– path to build UI links.LOGGING_FILE_ENABLE– boolean switcher to save logs in file.CLIPPER_URL– url to clipper service, required for archive.CLIPPER_TOKEN– token to clipper service, required for archive.CLIPPER_TIMEOUT– timeout for clipper service.
- Run tests
docker-compose -f docker-compose.dev.yml run nf /usr/share/python3/app/bin/pytest
- Check code style
docker-compose -f docker-compose.dev.yml run nf /usr/share/python3/app/bin/flake8