{"id":23596490,"url":"https://github.com/Adil-Bikiev/Employee-Database-Management","last_synced_at":"2025-11-04T21:30:27.354Z","repository":{"id":264433782,"uuid":"893365249","full_name":"EMMMABK/Employee-Database-Management","owner":"EMMMABK","description":"A Java-based CRUD application to manage employee data using PostgreSQL and JDBC. This project supports operations like ➕ adding, 📖 retrieving, ✏️ updating, and ❌ deleting employee records. Built with Maven for dependency management and modularity.","archived":false,"fork":false,"pushed_at":"2024-11-24T18:07:36.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T10:12:27.793Z","etag":null,"topics":["database","java","java-jdk","sql","test"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EMMMABK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-24T08:44:40.000Z","updated_at":"2024-11-24T18:07:39.000Z","dependencies_parsed_at":"2024-11-24T12:17:29.437Z","dependency_job_id":null,"html_url":"https://github.com/EMMMABK/Employee-Database-Management","commit_stats":null,"previous_names":["emmmabk/employee-database-management"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EMMMABK%2FEmployee-Database-Management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EMMMABK%2FEmployee-Database-Management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EMMMABK%2FEmployee-Database-Management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EMMMABK%2FEmployee-Database-Management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EMMMABK","download_url":"https://codeload.github.com/EMMMABK/Employee-Database-Management/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239441677,"owners_count":19639122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","java","java-jdk","sql","test"],"created_at":"2024-12-27T10:12:29.153Z","updated_at":"2025-11-04T21:30:27.324Z","avatar_url":"https://github.com/EMMMABK.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Employee Database Management System\n\nThis is a simple Java application that interacts with a relational database to manage employee data. It uses JDBC to perform CRUD (Create, Read, Update, Delete) operations on an `employee` table in the `employee_db` database. The application consists of an `Employee` entity class and an `EmployeeData` class for handling database operations.\n\n---\n\n## Features\n\n- **Create**: Add new employees to the database.\n- **Read**: Fetch details of a specific employee or list all employees.\n- **Update**: Modify details of an existing employee.\n- **Delete**: Remove an employee from the database.\n\n---\n\n## Requirements\n\n- **Java Development Kit (JDK)**: 8 or higher.\n- **Apache Maven**: For dependency management.\n- **PostgreSQL Database**: As the relational database system.\n- **PostgreSQL JDBC Driver**: Added as a Maven dependency.\n\n---\n\n## Database Setup\n\n1. Install and start **PostgreSQL Server**.\n2. Open a PostgreSQL client (e.g., pgAdmin or terminal).\n3. Create the `employee_db` database:\n   ```sql\n   CREATE DATABASE employee_db;\n   ```\n4. Connect to the `employee_db` database:\n   ```sql\n   \\c employee_db\n   ```\n5. Create the `employee` table:\n   ```sql\n   CREATE TABLE employee (\n       id SERIAL PRIMARY KEY,\n       name VARCHAR(100) NOT NULL,\n       position VARCHAR(100) NOT NULL,\n       salary DOUBLE PRECISION NOT NULL,\n       hire_date DATE NOT NULL\n   );\n   ```\n\n---\n\n## How to Run the Program\n\n### Step 1: Clone the Repository\nClone the project repository from GitHub:\n```bash\ngit clone https://github.com/your-username/employee-management-system.git\ncd employee-management-system\n```\n\n### Step 2: Build the Project\nUse Maven to build the project:\n```bash\nmvn clean install\n```\n\n### Step 3: Configure Database Connection\nUpdate the database connection details in the `EmployeeData` class:\n```java\nprivate static final String URL = \"jdbc:postgresql://localhost:5432/employee_db\";\nprivate static final String USER = \"postgres\"; // Replace with your PostgreSQL username\nprivate static final String PASSWORD = \"yourpassword\"; // Replace with your PostgreSQL password\n```\n\n---\n\n## Sample Operations\n\n### Create an Employee\nThe application will insert a new employee into the `employee` table.\n\n**Database State:**\n```sql\nINSERT INTO employee (name, position, salary, hire_date)\nVALUES ('Student AlaToo', 'HR Manager', 60000, '2023-01-15');\n```\n\n```\nSELECT * FROM employee WHERE id = 1;\n```\n\n```\nUPDATE employee\nSET salary = 65000\nWHERE id = 1;\n```\n\n```\nDELETE FROM employee WHERE id = 1;\n```\n\n![Screenshot Description](assets/screenshot1.jpg)\n\n![Screenshot Description](assets/screenshot2.png)\n\n![Screenshot Description](assets/screenshot3.jpg)\n\n![Screenshot Description](assets/screenshot4.jpg)\n\n---\n\n## Project Structure\n\n```\nemployee-database-management-system\n├── src\n│   ├── main\n│   │   ├── java\n│   │   │   └── com.example\n│   │   │       ├── App.java          # Main application\n│   │   │       ├── Employee.java     # Employee entity class\n│   │   │       └── EmployeeData.java # Database operations class\n│   └── test\n│       └── java\n│           └── com.example\n│               └── AppTest.java      # Unit tests (optional)\n└── pom.xml                           # Maven configuration\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAdil-Bikiev%2FEmployee-Database-Management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAdil-Bikiev%2FEmployee-Database-Management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAdil-Bikiev%2FEmployee-Database-Management/lists"}