{"id":21181695,"url":"https://github.com/vasugi2003/workwallet","last_synced_at":"2026-05-16T23:16:18.287Z","repository":{"id":263803838,"uuid":"891438634","full_name":"Vasugi2003/WorkWallet","owner":"Vasugi2003","description":"WorkWallet - Java Console application for Textile Industry product prices earning calculator, using Java OOPS and MySQL for data storage, retrival and processing.","archived":false,"fork":false,"pushed_at":"2024-11-23T14:55:32.000Z","size":2395,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T19:35:00.324Z","etag":null,"topics":["console-application","java","jdbc-connector","mysql-database","oops","queries","sql","vscode"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vasugi2003.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-20T10:36:50.000Z","updated_at":"2024-11-23T14:55:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"a17dfb4b-b15a-422a-bd77-dcf22daee10d","html_url":"https://github.com/Vasugi2003/WorkWallet","commit_stats":null,"previous_names":["vasugi2003/workwallet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Vasugi2003/WorkWallet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vasugi2003%2FWorkWallet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vasugi2003%2FWorkWallet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vasugi2003%2FWorkWallet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vasugi2003%2FWorkWallet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vasugi2003","download_url":"https://codeload.github.com/Vasugi2003/WorkWallet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vasugi2003%2FWorkWallet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33121899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["console-application","java","jdbc-connector","mysql-database","oops","queries","sql","vscode"],"created_at":"2024-11-20T17:52:04.961Z","updated_at":"2026-05-16T23:16:18.281Z","avatar_url":"https://github.com/Vasugi2003.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"**WORK WALLET**\n## Overview\nThe **WORK WALLET** is a Java console application designed to help track and manage checking work earnings in a textile induatry on a weekly basis. It allows users to record daily production data, calculate weekly earnings, and organize records efficiently. The application connects to a MySQL database for persistent data storage and retrieval.\n\n### Features\n1. **Add Data**: Enter daily records of production, including date, day, and the number of pieces completed.\n2. **View Data by Date**: Display production records for a specific date in a tabular format.\n3. **Delete Data**: Remove incorrect or unwanted records based on date.\n4. **Weekly Earnings Summary**: Calculate total weekly earnings automatically based on the number of pieces produced.\n5. **Database Integration**: Uses MySQL for reliable and persistent data storage.\n6. **Tabular Display**: Displays data in an easy-to-read table format in the console.\n\n---\n\n## Getting Started\n\n### Prerequisites\n- **Java Development Kit (JDK)**: Ensure JDK 8 or higher is installed.\n- **MySQL Server**: A running MySQL database instance.\n- **MySQL JDBC Driver**: Download and add the MySQL JDBC driver (`mysql-connector-java-X.X.X.jar`) to your project's classpath.\n- **IDE or Text Editor**: You can use any IDE like IntelliJ IDEA, Eclipse, or Visual Studio Code.\n\n### Installation\n\n1. **Clone the Repository**:\n   ```bash\n           https://github.com/Vasugi2003/WorkWallet\n   ```\n\n2. **Navigate to the Project Directory**:\n   ```bash\n   cd WotkWallet\n   ```\n\n3. **Set Up Database**:\n   - Log in to MySQL:\n     ```bash\n     mysql -u root -p\n     ```\n   - Create the `WeeklyEarnings` database:\n     ```sql\n     CREATE DATABASE WeeklyEarnings;\n     ```\n   - Create the `pieces` table:\n     ```sql\n     USE WeeklyEarnings;\n\n     CREATE TABLE pieces (\n         id INT AUTO_INCREMENT PRIMARY KEY,\n         date DATE NOT NULL,\n         day VARCHAR(20) NOT NULL,\n         pieces INT NOT NULL\n     );\n     ```\n\n4. **Update Database Credentials**:\n   - Open the `Main.java` file and update the following variables with your MySQL credentials:\n     ```java\n     String url = \"jdbc:mysql://localhost:3306/WeeklyEarnings\";\n     String username = \"your_mysql_username\";\n     String password = \"your_mysql_password\";\n     ```\n\n5. **Compile the Java Files**:\n   ```bash\n   javac -d bin src/*.java\n   ```\n\n6. **Run the Application**:\n   ```bash\n   java -cp bin Main\n   ```\n\n---\n\n## Usage\n\n### Main Menu\nWhen you run the program, you’ll see the following menu options:\n```\n===== Weekly Earnings System =====\n1. Add Data\n2. View Data by Date\n3. Delete Data\n4. View Total Earnings\n5. Exit\nEnter your choice:\n```\n\n### Example Operations\n#### Add Data\n- Enter the date, day, and the number of pieces produced.\n- The system will save the record to the database.\n\n#### View Data by Date\n- Enter a specific date (e.g., `2024-11-20`).\n- The system will display all records for that date in a table format.\n\n#### Delete Data\n- Provide the date to delete records.\n- The system will confirm whether the deletion was successful.\n\n#### View Total Earnings\n- The system calculates total weekly earnings automatically based on the number of pieces produced, assuming each piece earns 60 paise.\n\n---\n\n## Database Schema\n\n```sql\nCREATE TABLE pieces (\n    id INT AUTO_INCREMENT PRIMARY KEY,\n    date DATE NOT NULL,\n    day VARCHAR(20) NOT NULL,\n    pieces INT NOT NULL\n);\n```\n\n---\n\n## Built With\n- **Java**: Core application logic.\n- **MySQL**: Database for storing records.\n- **JDBC**: For connecting Java with MySQL.\n\n---\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\nFeel free to customize and expand this content based on additional features or updates to your project. Add screenshots of your application to enhance clarity!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasugi2003%2Fworkwallet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvasugi2003%2Fworkwallet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasugi2003%2Fworkwallet/lists"}