Skip to content

Latest commit

 

History

History
46 lines (41 loc) · 1.02 KB

File metadata and controls

46 lines (41 loc) · 1.02 KB

Hackpy

Django based project similar to hacker news to understand and implement django framework.

Main python Libraries Used:

  • 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

Installation

To get this project running on your own system, refer to the steps as following:

  1. Clone the repository
	git clone https://github.com/dhruv12399/Hackpy.git
  1. Set up mySQL database
	apt-get install mysql-server
  1. Create a new database (from the mysqlclient)
	create database hackpydb
  1. Run migrations
	python manage.py migrate
  1. Start the celery worker and crawl data
	celery -A hackpy worker
	python crawl.py
  1. Install and configure elasticsearch
	systemctl enable elasticsearch.service
	python manage.py add_data
  1. Runserver and you are good to go! 😄
	python manage.py runserver