How nqkhanh020903/caythuocdongyvietnam works
Project type and purpose
• This is a native Android mobile application (“CayThuocDongYVietNam”) for browsing, searching, and saving information about Vietnamese traditional medicinal plants and recipes.
• It’s a full-client app built in Java/Kotlin in Android Studio, relying on Firebase as its back-end for authentication, data storage, and potentially other services (analytics, storage).
File structure
• Top-level gradle files and wrappers show a standard Android/Gradle project.
• app/src/main/java/com/example/doanchuyennghanh/Activity and Fragment: UI layer implemented with Activities and Fragments.
• .../Adapter: RecyclerView adapters providing the glue between domain models and UI lists or pagers.
• .../Domain: Plain-old Java objects (models) for Herb, Post, Comment, User, etc.
• res/: standard resource folders (layouts, drawables, menus, values) providing XML UIs, styling, and assets.
• No custom server code; external integration is with Firebase (implied by google-services.json and gradle dependencies).
README
• Confirms purpose (lookup of plants, details, user favorites).
• Lists features: search by name or disease, detailed views, user authentication & favorites.
• Technologies: Android Studio, Firebase, Java.
Detailed capture of essential architecture
• Sketch a vertical layered view for the mobile client:
Top: Activities & Fragments
Middle: Adapters & Domain Models
Bottom: Data Access / Repository interfaces
• Repository layer to each Firebase service.
• Common endpoints or collection names (e.g., /herbs, /posts, /users/{uid}/favorites).