This project is a React.js application designed for managing service orders (OS) in a hospital's health department. It provides functionalities to create, analyze, and retrieve service orders efficiently.
The Health Department Service Management System is a web application developed using React.js and Express.js. It enables hospital staff to create new service orders, retrieve existing orders, and analyze service-related information.
- User Authentication: Secure user authentication system for accessing the system.
- Create Service Orders: Create new service orders to manage health-related services.
- Retrieve Service Orders: Retrieve existing service orders for analysis and record-keeping.
-
Clone the repository:
bashCopy code
git clone https://github.com/yourusername/health-department-service-management.git cd health-department-service-management
-
Install dependencies:
bashCopy code
npm install
-
Run the application:
bashCopy code
npm start
The application will be accessible at http://localhost:3000.
- Access the application at http://localhost:3000.
- Create an account or log in if you already have one.
- Use the provided features to create, analyze, and retrieve service orders.
The project structure is organized for maintainability and scalability. The key directories are:
- src: Contains the React.js source code.
- server: Contains the Express.js server code.
The application's routes are defined in the server/routes.js
file. Below are the main routes:
- POST /sessions: User authentication route.
- POST /os: Create a new service order.
- GET /os: Retrieve a specific service order.
- GET /getos: Retrieve all service orders.
Controllers handle the logic for each route. The controllers are located in the server/controllers
directory:
- SessionController: Manages user authentication.
- OrderServicesController: Manages service order creation and retrieval.
Contributions to the project are welcome. Fork the project, make your changes, and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.