Skip to content

Latest commit

 

History

89 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qora

An attempt at relicating Quora

Coding Dojo Hackathon

Setup Process

  1. Install Elasticsearch 5.1.1
  2. Edit /elasticsearch-5.1.1/config/elasticsearch.yml Add the below lines to the yml file.
    http.cors.enabled: true
    http.cors.allow-origin: "*"
    
  3. Activate your virtual envirnment.
  4. Run
    pip install -r requirements.txt
    
  5. Make sure you have elasticsearch-dsl and django, if not run the below command in your virtual envirnment.
    pip install django
    pip install elasticsearch-dsl
    
  6. Run your elasticsearch From your elasticsearch-5.1.1 folder
    ./bin/elasticsearch
    
  7. If you already have data in your database you will have to add it to the elasticsearch index. You can do this by logging into the shell and running the bulk index.
    python manage.py shell
    from apps.login_registration.search import *
    bulk_indexing()
    
  8. Now run you application.
    python manage.py runserver
    

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages