Skip to content

andika-eka/job-application-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Job Application filter

Requirement:

  1. python:
    web:

    solr:

    PDF:

  2. mysql

  3. apache solr



How to clone:

  1. Prepare the above requrements

  2. Clone this repository

  3. activate mysql and create new database

    mysql -u root
    
    CREATE DATABASE databasename
  4. put database in cvFilter/settings.py

    DATABASES = {
     'default': {  
         'ENGINE': 'django.db.backends.mysql',  
         'NAME': 'cvFilter',  
         'USER':'root',  
         # 'PASSWORD':'mysql',  
         'HOST':'localhost',  
         'PORT':'3306'  
         }
     }
  5. create secret key from https://djecrety.ir/ and put in in cvFilter/settings.py

    # SECURITY WARNING: keep the secret key used in production secret!
    SECRET_KEY = 'django-insecure-fgqs6&nz7wfk1vk=*qd$n@-zk#wgtyw(ur^4-1v=wmi2i@w#_d'
  6. Make your migrations

    python manage.py makemigrations
    python manage.py migrate
    
  7. Create a new superuser

    python manage.py createsuperuser
    
  8. let the show begin

    python manage.py runserver
    


How to generate fake data (for testing):

  1. Delete all applicants data.
    go to project root directory and run the following command
    python manage.py migrate applicant zero
    python manage.py migrate applicant 
    
  2. Delete all pdf file in ./media/documents/
  3. go to applicant/fixture/ run the following command
    python data_generator.py numberOfInstances
    
  4. go to project root directory and run the following command
    python manage.py loaddata applicant/fixture/applicants.json
    
  5. Examine

About

pdf cv filter using django dan solr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages