Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.3 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.3 KB

Job Matcher

Job matching algorithm that helps worker to find best jobs based on his geographic location

Technology stack

  1. Spring Boot, Spring Data, Spring scheduler
  2. Mongo DB (bulk insertion, geo geospatial data analysis)
  3. Mockito, Junit
  4. Spring REST webservices

How it works

Spring scheduler runs on startup and then every 10 mins to fetch latest data from third party APIs: http://test.swipejobs.com/api/workers

http://test.swipejobs.com/api/jobs

It removes and then bulk inserts fetched data to 2 MongoDB collections: workers, jobs

Our Job matching algorithm always runs on these MongoDB collections. Job matching preference is based on these critera:

  1. Within range of Geo location selected by worker
  2. License matching critera specified by job specifier
  3. Worker should have all the certificates specified by job specifier
  4. Then it returns best three (offcourse, offering highest bill rate!) jobs applicable to worker

Setup instructions:

  • You need to have MongoDB 3.4 up and running on localhost:27017

  • Create jobs collection and create indexe

    • db.createCollection("jobs")
    • db.jobs.createIndex({location: "2dsphere"})
  • Import this into your IDE, start up JobmatcherApplication.java

  • REST service to find best jobs for a worker: /jobMatchingApplication/jobMatches?workerId={workerId}