Django based project similar to hacker news to understand and implement django framework.
- Rest Framework as API framework
- Elasticsearch to implement search
- Memcached for caching
- Beautifulsoup4 for parsing html while crawling data
- Celery to run crawling tasks parallelly
- Jinja2 as template language
To get this project running on your own system, refer to the steps as following:
- Clone the repository
git clone https://github.com/dhruv12399/Hackpy.git
- Set up mySQL database
apt-get install mysql-server
- Create a new database (from the mysqlclient)
create database hackpydb
- Run migrations
python manage.py migrate
- Start the celery worker and crawl data
celery -A hackpy worker
python crawl.py
- Install and configure elasticsearch
systemctl enable elasticsearch.service
python manage.py add_data
- Runserver and you are good to go! 😄
python manage.py runserver