OneLife is a robust backend REST API built using Spring & SpringBoot, designed to manage hospital data at various levels, from state to country. The API supports CRUD operations with secure authentication and authorization, providing role-based access to different users.
- Comprehensive Data Management: Handles data for hospitals, departments, staff, doctors, patients, pharmacy, invoices, prescriptions, and appointments.
- Role-Based Access Control:
- Roles: OWNER, DEVELOPER, ADMIN, MANAGER, RECEPTIONIST
- Patient Access: Patients can check their appointments, invoices, and prescriptions.
- Authentication & Authorization: Secure login and registration processes with role-specific data access.
- CI/CD Pipeline: Deployed using GitHub and hosted on Railway for continuous integration and delivery.
- Database: Online MySQL server for data storage.
- Framework: Spring & SpringBoot
- Database: MySQL
- Deployment: Railway
- Version Control: GitHub
- Java 8 or higher
- Maven
- MySQL
- Clone the repository
git clone https://github.com/yourusername/OneLife.git cd OneLife
- Configure the database
- Create a database named
onelife
. - Update the
application.properties
file with your MySQL database credentials.
spring.datasource.url=jdbc:mysql://localhost:3306/onelife spring.datasource.username=yourUsername spring.datasource.password=yourPassword spring.jpa.hibernate.ddl-auto=update
- Create a database named
- Build the project
mvn clean install
- Run the project
mvn spring-boot:run
-
Start MySQL Server
- Ensure your MySQL server is running.
-
Run the Spring Boot Application
mvn spring-boot:run
-
The application will be available at http://localhost:8080.
-
Authentication & Authorization
- Secure login and registration.
- Role-based access control.
-
Managing Hospitals
- CRUD operations for hospital data.
-
Patient Access
- Patients can view their appointments, invoices, and prescriptions.
-
CI/CD Pipeline
- Continuous integration and deployment using GitHub and Railway.
- The All Rest API
- More API's showing using Swagger UI
- Code running locally
- Hospital Owner API Working
- Hospital ADMIN API working
- Departments API working
Feel free to contribute by forking the repository and submitting a pull request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License.
- Email: jasjeev99@gmail.com
- LinkedIn: LinkedIn Profile
- Portfolio: My Portfolio