Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
6003-CEM---2324JANMAY/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
77 lines (53 sloc)
1.48 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 6003-CEM---2324JANMAY | |
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. |