be the first one notified with the latest news.
- Python 3.9
- Django 4.0
- Django Rest Framework 3.13
- Docker
- Git
- Celery
- Redis
- Simple JWT
- Swagger
1- clone the project:
git clone [email protected]:AliHosseinzadeh2000/RSS-grabber.git
2- rename '.env-sample' to '.env' and provide the required variables.
3- create a python virtual environment:
python -m venv venv
4- activate your venv
- on linux and mac:
source venv/bin/activate
- on windows:
venv/Scripts/activate
5- install dependencies:
pip install -r requirements.txt
6- run a redis container on docker:
docker run --name myredis -p 6379:6379 -d redis
7- migrate the database:
python manage.py migrate
8- create a superuser:
python manage.py createsuperuser
9- add your desired RSS (for instance iribnews) in the admin panel
10- run a celery worker in a seprated terminal tab:
celery -b redis://localhost:6379 -A main.tasks worker -E -l INFO -P gevent -Q news
11- run celery beat in another tab:
celery -b redis://localhost:6379 -A main.tasks beat -l INFO
12- run the project:
python manage.py runserver
Endpoints are available at ~:8000/swagger/