This repository contains a Jobs listing application. It consists of a frontend and backend using MockApi.
cd Jobphin
pnpm install
The frontend is built with React, TypeScript, and Vite.
pnpm run dev
To build the frontend for production, run:
pnpm run build
pnpm run preview
Api Url: https://65570fd5bd4bcef8b611f8ac.mockapi.io/api/v1
GET /jobs
Returns a list of jobs.
Example response:
[
{
"createdAt": "2023-11-16T23:17:17.452Z",
"title": "UX UI Designer",
"companyName": "Great Vibes",
"industry": "Information Technology",
"location": "Chennai, Tamilnadu, India",
"remoteType": "In-office",
"minExperience": 1,
"maxExperience": 2,
"minSalary": 30000,
"maxSalary": 60000,
"totalEmployee": "51-200",
"apply": "Apply Now",
"id": "7cLpk1eaXj_rnZvt6sLgs"
}
]
Adds a new job to the jobs collection.
POST /jobs
Example Body:
{
"createdAt": "2023-11-16T23:17:17.452Z",
"title": "UX UI Designer",
"companyName": "Great Vibes",
"industry": "Information Technology",
"location": "Chennai, Tamilnadu, India",
"remoteType": "In-office",
"minExperience": 1,
"maxExperience": 2,
"minSalary": 30000,
"maxSalary": 60000,
"totalEmployee": "51-200",
"apply": "Apply Now",
"id": "7cLpk1eaXj_rnZvt6sLgs"
}
Updates a job.
PUT /jobs/${job_id}
Example Body:
{
"createdAt": "2023-11-16T23:17:17.452Z",
"title": "UX UI Designer",
"companyName": "Great Vibes",
"industry": "Information Technology",
"location": "Chennai, Tamilnadu, India",
"remoteType": "In-office",
"minExperience": 1,
"maxExperience": 2,
"minSalary": 30000,
"maxSalary": 60000,
"totalEmployee": "51-200",
"apply": "Apply Now",
"id": "7cLpk1eaXj_rnZvt6sLgs"
}
Deletes a job from the jobs collection.
DELETE /jobs/${job_id}