This repo implements two different end points in django using the MySQL db.
job/- Search candidates according to perfect job title match with max skill match.partial/- Search candidates according to partial job title match.
- Download
MySQLand it's Python client:python -m pip install mysqlclient
- Install
Djangopython -m pip install Django
-
First, clone the repo.
-
Open the
gloat_matcher/settings.pyand modify the DATABASES section to you relevant database to use. -
Run the
find_uploads.batfile in order to find the MySQL uploads directory path. Move all thecsvfiles to the presented directory. Thecsvfiles are located in thedatadirectory. -
Change the
init.batfile as follows:
WARNING this will drop the existing database.mysqlsh -u <db_user_name> -p --sql -e "DROP DATABASE <DB_name>;"
mysqlsh -u <db_user_name> -p --sql -e "CREATE DATABASE <DB_name>;"
-
Run the
init.batfile. This will make migrations and load the csv data to the database. -
Now the project is ready to go! You can run the server:
$ python manage.py runserver
-
Open the given server url with the desired endpoint and start playing!
http://127.0.0.1:8000/job/ http://127.0.0.1:8000/partial/



