https://github.com/vaibhav2002/docubox-androidapp
DocuBox is an android app π±in which you can securely upload your files on the cloudβ from family pictures and audio recordings to spreadsheets, presentations and other confidential documents.
https://github.com/vaibhav2002/docubox-androidapp
android clean-code coroutines-flow daggerhilt datastore hacktoberfest hacktoberfest2022 kotlin linode mvvm retrofit2 solid-principles
Last synced: about 1 month ago
JSON representation
DocuBox is an android app π±in which you can securely upload your files on the cloudβ from family pictures and audio recordings to spreadsheets, presentations and other confidential documents.
- Host: GitHub
- URL: https://github.com/vaibhav2002/docubox-androidapp
- Owner: Vaibhav2002
- License: mit
- Created: 2022-06-04T12:37:49.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-08T11:29:01.000Z (over 2 years ago)
- Last Synced: 2025-03-18T12:33:59.088Z (about 1 month ago)
- Topics: android, clean-code, coroutines-flow, daggerhilt, datastore, hacktoberfest, hacktoberfest2022, kotlin, linode, mvvm, retrofit2, solid-principles
- Language: Kotlin
- Homepage:
- Size: 26.2 MB
- Stars: 44
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# **DocuBox**
### **DocuBox** is a cloud based file storing app where you can securely store and access your documents from anywhere around the world!
This project is developed by **Team 404** for Hashnode x Linode hackathon. This team comprises of [Ishant](https://github.com/ishantchauhan710/) and [Vaibhav](https://github.com/Vaibhav2002).
# Blog β
To know more about how I build this project, read my article on https://ishantchauhan.hashnode.dev/docubox-securely-store-access-and-share-your-files-on-cloud
## Application Install
***You can Install and test latest DocuBox app from below π***
[](https://github.com/Vaibhav2002/DocuBox-AndroidApp/releases/tag/v1.0.0)
### How to use this app
To know how to use this app [read this](HOW%20TO%20USE.md) or watch this [video](https://youtu.be/z94j9FA-5oY)## Setup
- Clone the repository on your machine.
- Clone the [backend code](https://github.com/ishantchauhan710/DocuBox) and set it up by following its README.
- After setting up the backend, do the following:Open Secrets.kt in util package and add your backend Base URL
```kotlin
//Add your base url here
const val BASE_URL = "http://[your server url]/api/"
```## About
It uses a nodejs backend which is deployed on an ubuntu server running on [Linode](https://www.linode.com).
- Fully functionable.
- Clean and Simple Material UI.
- Best and Clean Code Quality following Modern Android Development, SOLID Principles and much more.## App Features
- **User Authentication** - Supports email based authentication
- **Saving Files** - You can upload your files to DocuBox's cloud storage and access it anywhere.
- **File Encryption** - Files stored on DocuBox is secure and encrypted, so your data is securely stored.
- **Sharing File Access** - You can share view access of your files to other users.
- **File Management** - You can create multiple folders to organize your storage just as you want it.
- **File Download** - You can even download your files and save them locally for offline access.
- **Enhanced File Search** - Super fast file searching which can search files instantly.## Insights into the app π



## πΈ Screenshots| | | |
|---|---|---|
||  | 
| |  |
|| | 
| |  | ### Technical details
- DocuBox uses custom NodeJS Server running on Linode as its backend.
- DocuBox uses Retrofit to make all REST API calls to the NodeJS backend.
- DocuBox is made using Kotlin and following Modern Android Development practices.
- DocuBox uses Kotlin Coroutines and Flow to handle all asynchronous tasks.
- DocuBox uses all Jetpack libraries and follows MVVM architecture. It also has a G.O.A.T rating in Android's M.A.D scorecard.
- DocuBox's code follows all the best practices and software development principles like SOLID which make it a very good learning resource for beginners as well as for people looking to improve thier software design skills.
- DocuBox's code is properly linted using Ktlint.
## Built With π
- [Kotlin](https://kotlinlang.org/) - First class and official programming language for Android development.
- [Coroutines](https://kotlinlang.org/docs/reference/coroutines-overview.html) - For asynchronous and more..
- [Flow](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/) - A cold asynchronous data stream that sequentially emits values and completes normally or with an exception.
- [StateFlow](https://developer.android.com/kotlin/flow/stateflow-and-sharedflow) - StateFlow is a state-holder observable flow that emits the current and new state updates to its collectors.
- [SharedFlow](https://developer.android.com/kotlin/flow/stateflow-and-sharedflow) - A SharedFlow is a highly-configurable generalization of StateFlow.
- [Android Architecture Components](https://developer.android.com/topic/libraries/architecture) - Collection of libraries that help you design robust, testable, and maintainable apps.
- [ViewModel](https://developer.android.com/topic/libraries/architecture/viewmodel) - Stores UI-related data that isn't destroyed on UI changes.
- [ViewBinding](https://developer.android.com/topic/libraries/view-binding) - Generates a binding class for each XML layout file present in that module and allows you to more easily write code that interacts with views.
- [DataBinding](https://developer.android.com/topic/libraries/data-binding) - Binds data directly into XML layouts
- [DataStore](https://developer.android.com/topic/libraries/architecture/datastore) - Jetpack DataStore is a data storage solution that allows you to store key-value pairs or typed objects with protocol buffers.
- [Dependency Injection](https://developer.android.com/training/dependency-injection) -
- [Hilt-Dagger](https://dagger.dev/hilt/) - Standard library to incorporate Dagger dependency injection into an Android application.
- [Hilt-ViewModel](https://developer.android.com/training/dependency-injection/hilt-jetpack) - DI for injecting `ViewModel`.
- [GSON](https://github.com/google/gson) - A modern JSON library for Kotlin and Java.
- [Timber](https://github.com/JakeWharton/timber) - A simple logging library for android.
- [Retrofit](https://square.github.io/retrofit/) - A type-safe HTTP client for Android and Java.
- [GSON Converter](https://github.com/square/retrofit/tree/master/retrofit-converters/gson) - A Converter which uses Moshi for serialization to and from JSON.
- [Coil](https://github.com/coil-kt/coil) - An image loading library for Android backed by Kotlin Coroutines.
- [Material Components for Android](https://github.com/material-components/material-components-android) - Modular and customizable Material Design UI components for Android.## Package Structure

com.docubox # Root Package
.
βββ data # For data handling.
| βββ local # Local Datasource and classes
| βββ remote # Remote datasources and API Service
β βββ model # Model data classes and mapper classes, both remote and local entities
β βββ repo # Single source of data.
|
βββ service # Foreground Service to upload File to server
|
βββ di # Dependency Injection
β βββ module # DI Modules
|
βββ ui # UI/View layer
| βββ adapters # Adapter, ViewHolder and DiffUtil
| βββ screens # All App Screens
|
βββ utils # Utility Classes / Kotlin extensions## Architecture
This app uses [***MVVM (Model View View-Model)***](https://developer.android.com/jetpack/docs/guide#recommended-app-arch) architecture.
---
## If you like my projects and want to support me to build more cool open source projects
## Attribution
The project uses [backend](https://github.com/ishantchauhan710/DocuBox) which is deployed on [Linode](https://www.linode.com) for the [Hashnode X Linode Hackathon](https://townhall.hashnode.com/build-with-linode-hackathon-june-2022).---
## Contact
If you need any help, you can connect with me.Visit:- [Vaibhav Jaiswal](https://vaibhavjaiswal.vercel.app/#/)