Skip to content

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

Notifications You must be signed in to change notification settings

dhruv12399/Hackpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published