DEV Community

Hung Nguyen
Hung Nguyen

Posted on

Contributed to Assessor

Overviews

Assessor is an open-source Resume Analyzer and Ranking tool for recruiters and candidates. The main idea is to simplify the hiring process by shortlisting candidates based on their resumes. This project is quite interesting to me because it's using NextJS, which is the current React framework that I have been learning currently.

Process and Issues

I started by asking the owner to allow me to work on the issue. After getting accepted, I forked Assessor repo and created a new branch. For the first time, I was really hard for me to navigate to the find to work on. Also, because I was new to NextJS so I had to watched a big tutorial in Youtube in order to understand how NextJS work, how they use pages instead of react-router-dom. Because the owner wanted the tool to allow multiple uploads. I had to make several changes because at that moment, the tool can only read 1 upload at a time. After that, I created validations based on the issue and implemented them to my code. I sent him a pull request after everything worked fine. One of the biggest problems I faced was that the tool only allowed user for single upload. I had to understand the codes first and created a completely new array useState([]). I also needed to fixed the output that renders to browser too. Files validation were not so hard, since it only took me a bit to do the research.

Code Explanation

Image description

  • Created useState([]) files which is an array to store user's resumer upload.
  • Check if file is valid or not with isFileValid().
  • Files must be a pdf file and not exceed 10MB
  • Created fileChange() to check user's file when they just uploaded the files because saving to the database.

Image description

-Set onChange attribute to input so that when the change happens, it will call fileChange()

Image description

  • The tool now will read a list of files instead of the single file. Read each file in files and list them out to the browser

About the owner

The owner did not help me much. I worked on my own nearly completely. Also I sent him a pull request but he has still not replied yet.

Links:

Repo: https://github.com/Yashdew/Assessor
Issue: https://github.com/Yashdew/Assessor/issues/37
Pull request: https://github.com/Yashdew/Assessor/pull/41

Top comments (0)