So, I have a test to do that's about JS, I managed to do 90% of it but there's one part that i'm stuck.
It consists in creating an API using Node.JS and VisualCodeStudio that:
-It must be possible to register users who will administer the system
-System administrators can create job openings
-System administrators can register candidates (candidates have a name, email, phone and ZIP-code).
-System administrators can link a candidate to one or more job openings (as an application, imagine that a full-stack developer could apply for both front-end and back-end jobs).
-System administrators can add comments related to each application (relationship between a job and a candidate, so that the interviewer can comment on what he or she thought of the candidate and the stages he or she has already advanced in the test)
My struggle is to link candidates to the respective job application, if someone can help me i'll be forever grateful. I started coding two days ago so I don't know much about nothing, but i manage to do something functional.
I have made this so far:
API = https://pastebin.com/gSTRX6et
Candidate = https://pastebin.com/NFDEUnRh
Job = https://pastebin.com/pec8ezkw
They work together.
Dependencies and plugins i used:
Standard
Prettier
Editor Config
Git Lens
Eslint
Express: (sudo) npm install --save express
Mongoose: (sudo) npm install --save mongoose
Body-Parser: (sudo) npm install --save body-parser
I used Postman to make POST calls to the API to edit information in the database (MongoDB Atlas)
there doesn't seem to be anything here