pankajkumarbij / easy-job-intern

The main motive behind the design of this project to provide the best job and internship opportunities.
MIT License
28 stars 75 forks source link

savedCompanies to student model #361

Closed mitalirs closed 3 years ago

mitalirs commented 3 years ago

Is your feature request related to a problem? Please describe.

a student cannot starmark/save a company so that he/she can get notified when the company has any opening

Describe the solution you'd like

add savedCompanies field (to student model) to starmark a company

add a saveCompany route to studentController file which will be a post request (the companyName (which will be sent as req body) validity will be checked before saving it to savedCompanies array)

a list of employers will be fetched and the post req body will be valid if it is contained in the list of the employers' companies

the user has to be authenticated