This project includes an API and a client application for managing job postings.
Prerequisites Ensure you have the following installed on your machine:
Node.js npm (Node package manager)
Navigate to the API directory: cd API_GITHUB/api
Install dependencies: npm install
Run the API: npm start
This will start the API server. By default, it runs on http://localhost:5000.
API Endpoints Get all jobs:
Endpoint: /api/jobs Method: GET Get a job by ID:
Endpoint: /api/jobs/:id Method: GET Create a new job:
Endpoint: /api/jobs Method: POST Payload: JSON object representing the job details Update a job:
Endpoint: /api/jobs/:id Method: PUT Payload: JSON object representing the updated job details Delete a job:
Endpoint: /api/jobs/:id Method: DELETE
Client Setup and Usage Instructions Setup Instructions
Navigate to the client directory: cd ../client
Install dependencies: npm install
Run the client: npm start
This will start the development server for the client application. By default, it runs on http://localhost:3000.
Accessing the Pages
Home Page: URL: http://localhost:3000 Description: Lists available jobs and allows users to navigate to job details.
Admin Page: URL: http://localhost:3000/admin Description: Accessible to administrators for managing job postings.
Job Listings Page: URL: http://localhost:3000/jobs Description: Displays all job postings.
Application Page: URL: http://localhost:3000/application Description: Allows users to apply for jobs.