Loading repository dataโฆ
Loading repository dataโฆ
engripaye / repository
๐๏ธ๐โ Java (Spring Boot, MySQL/PostgreSQL) โ Backend API for business logic | PHP (Laravel or simple PHP) โ Frontend UI that consumes the Java API
A professional full-stack application built with Java (Spring Boot) as the backend and PHP as the frontend. This project demonstrates how to integrate two different technologies into one system using REST APIs.
employee-management/
โ
โโโ java-backend/ # Java Spring Boot Backend
โ โโโ src/main/java/com/app
โ โ โโโ Employee.java
โ โ โโโ EmployeeController.java
โ โ โโโ EmployeeService.java
โ โ โโโ EmployeeRepository.java
โ โโโ pom.xml
โ
โโโ php-frontend/ # PHP Frontend
โ โโโ index.php
โ โโโ add_employee.php
โ โโโ list_employees.php
โ โโโ config.php
โ
โโโ README.md
git clone https://github.com/your-username/employee-management.git
cd employee-management
Update application.properties in java-backend/src/main/resources/
spring.datasource.url=jdbc:mysql://localhost:3306/employees
spring.datasource.username=root
spring.datasource.password=yourpassword
spring.jpa.hibernate.ddl-auto=update
cd java-backend
mvn spring-boot:run
Backend will run at ๐ http://localhost:8080/api/employees
Update php-frontend/config.php
<?php
$api_url = "http://localhost:8080/api/employees";
?>
cd php-frontend
php -S localhost:8000
Frontend will run at ๐ http://localhost:8000
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/employees | Get all employees |
| POST | /api/employees | Add new employee |
Employee Management System
- View Employees
- Add Employee
1. John Doe - Developer
2. Jane Smith - Manager
Your Name
This project is licensed under the MIT License โ feel free to use and modify it.
๐ Would you like me to also generate the actual application.properties file and SQL schema for the employee table so that your backend runs immediately without errors?