{"id":19277683,"url":"https://github.com/zurichblade/groceryapp","last_synced_at":"2025-02-23T21:25:33.353Z","repository":{"id":244528370,"uuid":"674768629","full_name":"ZurichBlade/GroceryApp","owner":"ZurichBlade","description":"GroceryApp: Efficiently managed with SQLiteDatabase, featuring a structured codebase and extensive module and table integration","archived":false,"fork":false,"pushed_at":"2024-06-15T09:27:56.000Z","size":333,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-05T15:48:59.017Z","etag":null,"topics":["best-practices","grocery-store","material-design","sqllite-database"],"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/ZurichBlade.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":"2023-08-04T18:17:20.000Z","updated_at":"2024-09-07T10:04:00.000Z","dependencies_parsed_at":"2024-06-15T11:59:40.684Z","dependency_job_id":"2a05e46e-dd67-4dfe-ba6c-290f221991f4","html_url":"https://github.com/ZurichBlade/GroceryApp","commit_stats":null,"previous_names":["zurichblade/groceryapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZurichBlade%2FGroceryApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZurichBlade%2FGroceryApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZurichBlade%2FGroceryApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZurichBlade%2FGroceryApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZurichBlade","download_url":"https://codeload.github.com/ZurichBlade/GroceryApp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240381220,"owners_count":19792420,"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":["best-practices","grocery-store","material-design","sqllite-database"],"created_at":"2024-11-09T21:06:38.459Z","updated_at":"2025-02-23T21:25:33.324Z","avatar_url":"https://github.com/ZurichBlade.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Grocery App\n\nThe Grocery app is a user-friendly solution showcasing seamless integration of SQLite database management, RecyclerView implementation, Material Design principles, and query functionalities.\n\n\n\n## Screenshots\n\n![App Screenshot](https://github.com/ZurichBlade/GroceryApp/blob/master/app/src/main/res/drawable/app_ss.png)\n\n\n## Features\n\n- SQLite Database Integration: Utilizes SQLite with tables for User, Stock, Sales, and Purchase, demonstrating efficient data management and integrity.\n- Material Design Principles: Follows Material Design guidelines for a visually appealing and intuitive user experience.\n- Home Page: Displays user info and provides a navigation drawer for Add Stock, Sales, Purchase, Search Stock, and List Stock.\n- Add Stock: Enables quick addition of items with validation for Name, Quantity, Price, and Returnable status.\n- Sales: Facilitates transactions with real-time inventory updates.\n- Purchase: Supports restocking with automatic stock level adjustments.\n- Search Stock: Allows quick lookup of items by Item Code with detailed item views.\n\n\n\n## Query Usage/Examples\n\nMethod to create a table\n\n```bash\n  String CREATE_TABLE_QUERY = \"CREATE TABLE \" + TABLE_USER + \" (\" +\n                COL_ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \" +\n                COL_USERNAME + \" TEXT, \" +\n                COL_EMAIL + \" TEXT, \" +\n                COL_PASSWORD + \" TEXT);\";\n        sqLiteDatabase.execSQL(CREATE_TABLE_QUERY);\n```\n\nMethod to insert data into the table\n\n```bash\n   public long insertStockItem(String itemName, int qtyStock, int price, boolean returnable) {\n        this.sqLiteDatabase = getWritableDatabase();\n\n        ContentValues values = new ContentValues();\n        values.put(COLUMN_ITEM_NAME, itemName);\n        values.put(COLUMN_QTY_STOCK, qtyStock);\n        values.put(COLUMN_PRICE, price);\n        values.put(COLUMN_RETURNABLE, returnable ? 1 : 0); // Convert boolean to integer (1 for true, 0 for false)\n        long newRowId = sqLiteDatabase.insert(TABLE_STOCK, null, values);\n\n        sqLiteDatabase.close();\n        return newRowId;\n    }\n```\n\n\n\n\n## Note\n\nThis project is developed specifically for practicing SQLite database management, offering a hands-on approach to learning and implementing database workflows in Android applications.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzurichblade%2Fgroceryapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzurichblade%2Fgroceryapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzurichblade%2Fgroceryapp/lists"}