Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.34 KB

README.md

File metadata and controls

60 lines (42 loc) · 1.34 KB

content-aggregator

This is a content aggregator that gets different tech contents from different websites plus a blog forum(Made with Python & Django).

Live website: https://content-aggregator-5fe32d76e660.herokuapp.com/

STEPS

git clone https://github.com/Kingsolomon445/content-aggregator

Modify Secret Key so it works

File to modify -> content_aggregator/content_aggregator/settings.py
change SECRET_KEY value into any random secret key or export to env as SECRET_KEY

From the project root directory

start a virtual environment and activate it

python -m virtualenv venv
source venv/bin/activate

Install the required dependencies

pip install -r requirements.txt

Create database tables

python manage.py makemigrations
python manage.py migrate

Run the Server

python manage.py runserver

Start redis server

This is important so celery can work for task scheduling, you may need to set up redis and a broker before running these commands

These commands are for MAC and may be different for other OS

redis-server
sudo rabbitmq-server

Celery task scheduling commands

celery -A content_aggregator beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler
celery -A content_aggregator worker --loglevel=info

Go to localhost:8000