From efd464652c72ebec901a9d6526e0c276011c6a88 Mon Sep 17 00:00:00 2001 From: Amr <63168118+amrk000@users.noreply.github.com> Date: Tue, 24 Sep 2024 19:33:18 +0300 Subject: [PATCH] Update README.md --- README.md | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1a16894..ee5baaa 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,63 @@ -# Daily-Deal-Android-App -Simple android app built with local database +![Repo Cover](https://github.com/user-attachments/assets/7855cd1c-cbbd-4464-ab39-e6a34669da85) +### Simple MVVM android app that built with local database using room. It allows ordering one deal per day for user. Providing admin dashboard to add, delete & update data. + +## App Features: +- Ordering Meals (One Per Day) +- tracking orders history +- Admin dashboard +- Permissions & Roles Management based on permission matrix Json file +- Built using Mvvm, RoomDB, Kotlin coroutines +- Contains Implementation for: + - DateTimeHelper to convert UTC DatTime to local with specific pattern + - ImageBase64Converter to convert Images from/to Base64 + - TextFieldValidator to validate text fields using regex + +## Video Demo: +
+ +## App Apk: +
+ +
+ +## Database ERD: +![Daily Deal ERD](https://github.com/user-attachments/assets/6cc90555-c728-4ff1-bc78-a0c1e227bfed) + +## Json Configs: +### default data are stored in project/raw as json files you can edit them +### default_permissions.json (roles and permissions data) +```json +[ + { + "addItem": true, + "adminDashboard": true, + "deleteItem": true, + "editItem": true, + "orderItem": true, + "role": "admin" + }, + { + "addItem": false, + "adminDashboard": false, + "deleteItem": false, + "editItem": false, + "orderItem": true, + "role": "user" + } +] +``` + +### default_users.json (contains default admin) +```json +[ + { + "address": "-", + "email": "admin@dailydeal.co", + "id": 0, + "name": "admin", + "password": "Admin123456789$", + "phone": "0", + "role": "admin" + } +] +```