This project is a job listings application built using React and Vite. It provides a minimal setup to get React working in Vite with HMR and some ESLint rules. The application allows users to view, add, edit, and delete job listings.
- View all job listings
- Add a new job listing
- Edit an existing job listing
- Delete a job listing
- Responsive design
- Toast notifications for actions
- React Router: For client-side routing
- React Hooks: For state and effect management
- React Toastify: For toast notifications
- Context API: For state management across components
-
Clone the repository:
git clone (https://github.com/OmarMah/HireDev.git) cd react-jobs -
Install dependencies:
npm install
-
Start the development server:
npm run dev
This will start the Vite development server and you can view the application at http://localhost:3000.
This project uses a mock server to simulate API calls. The mock server is configured to handle the following endpoints:
GET /api/jobs: Fetch all job listings
POST /api/jobs: Add a new job listing
PUT /api/jobs/:id: Update an existing job listing
DELETE /api/jobs/:id: Delete a job listingTo start the mock server, run:
npm run mock-serverTo run the application, use the following command:
npm run dev