This is a simple React application for managing customer appointments. Users can add customers with their appointment times, and the appointments are displayed in ascending order of time. Clicking on an appointment in the sidebar displays the customer's details.
- Add customer names and appointment times.
- Appointments are sorted in ascending order of time.
- Display customer details by clicking on an appointment.
-
Clone the repository:
git clone https://github.com/kaushikjaincodes/Appointment_management.git
-
Navigate to the project directory:
cd Appointment_management
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to:
http://localhost:5173
-
Use the form to add customer names and appointment times.
-
Click on an appointment in the sidebar to view the customer's details.
src/
: Source code directoryApp.js
: Main application componentAddbar.jsx
: Component for adding customer detailsLeftpanel.jsx
: Component displaying the list of appointmentsRightpanel.jsx
: Component displaying selected customer detailsApp.css and more
: Styles for the application
The main component that holds the state and handles adding and sorting customers.
Component with a form to add customer names and appointment times. It uses the onAddCustomer
prop to add a new customer.
Component that displays the list of sorted appointments. It uses the onSelectCustomer
prop to set the selected customer.
Component that displays the details of the selected customer.
Basic CSS styling is applied through App.css and more
. Adjust the styles according to your preferences.
Feel free to open issues or submit pull requests with improvements. Any contributions are greatly appreciated!
If you have any questions or suggestions, please feel free to contact me at [ x: KaushikJain2266].