DocuBox is a cloud based file storing app where you can securely store and access your documents from anywhere around the world

Overview

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 and Vaibhav.

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 πŸ‘‡

DocuBox

How to use this app

To know how to use this app read this or watch this video

Setup

  • Clone the repository on your machine.
  • Clone the backend code 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

//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.

  • 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.

summary.jpg

Built With πŸ› 

  • Kotlin - First class and official programming language for Android development.
  • Coroutines - For asynchronous and more..
  • Flow - A cold asynchronous data stream that sequentially emits values and completes normally or with an exception.
  • StateFlow - StateFlow is a state-holder observable flow that emits the current and new state updates to its collectors.
  • SharedFlow - A SharedFlow is a highly-configurable generalization of StateFlow.
  • Android Architecture Components - Collection of libraries that help you design robust, testable, and maintainable apps.
    • ViewModel - Stores UI-related data that isn't destroyed on UI changes.
    • ViewBinding - 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 - Binds data directly into XML layouts
    • DataStore - Jetpack DataStore is a data storage solution that allows you to store key-value pairs or typed objects with protocol buffers.
  • Dependency Injection -
    • Hilt-Dagger - Standard library to incorporate Dagger dependency injection into an Android application.
    • Hilt-ViewModel - DI for injecting ViewModel.
  • GSON - A modern JSON library for Kotlin and Java.
  • Timber - A simple logging library for android.
  • Retrofit - A type-safe HTTP client for Android and Java.
  • GSON Converter - A Converter which uses Moshi for serialization to and from JSON.
  • Coil - An image loading library for Android backed by Kotlin Coroutines.
  • Material Components for 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) architecture.


If you like my projects and want to support me to build more cool open source projects

Attribution

The project uses backend which is deployed on Linode for the Hashnode X Linode Hackathon.


Contact

If you need any help, you can connect with me.

Visit:- Vaibhav Jaiswal

You might also like...
Adds loveable red pandas into Minecraft! Who doesn't love a Red Panda in their world?

🧧 Akali Adds loveable red pandas into Minecraft! Who doesn't love a Red Panda in their world? :3 This is a Forge and Fabric mod under their respected

Slime World Format implementation written in Kotlin with Zstd for bukkit.

Slime Korld Easily create many slime worlds with the Slime Korld. What is Slime Korld? Slime Korld is a bukkit library written in Kotlin to make minec

The Klutter CLI tool gives access to all tasks to create and manage a Klutter project.

Klutter CLI The Klutter CLI tool gives access to all tasks to create and manage a Klutter project. Gettings started Download the tool. Unzip the file.

A beautiful Fashion Store like Android App Mock built on Jetpack Compose with compose navigation, hilt, dark theme support and google's app architecture found on uplabs Here
A beautiful Fashion Store like Android App Mock built on Jetpack Compose with compose navigation, hilt, dark theme support and google's app architecture found on uplabs Here

A beautiful Fashion Store like Android App Mock built on Jetpack Compose with compose navigation, hilt, dark theme support and google's app architecture found on uplabs Here

Small Kafka Playground to play around with Test Containers, and KotlinX Coroutines bindings while reading Kafka Definite Guide V2

KafkaPlayground Small playground where I'm playing around with Kafka in Kotlin and the Kafka SDK whilst reading the Kafka book Definite Guide from Con

[Android Library] Get easy access to device information super fast, real quick
[Android Library] Get easy access to device information super fast, real quick

DeviceInfo-Sample Simple, single class wrapper to get device information from an android device. This library provides an easy way to access all the d

A Kotlin DSL wrapper around the mikepenz/MaterialDrawer library.
A Kotlin DSL wrapper around the mikepenz/MaterialDrawer library.

MaterialDrawerKt Create navigation drawers in your Activities and Fragments without having to write any XML, in pure Kotlin code, with access to all t

A Lightweight PDF Viewer Android library which only occupies around 125kb while most of the Pdf viewer occupies up to 16MB space.
A Lightweight PDF Viewer Android library which only occupies around 125kb while most of the Pdf viewer occupies up to 16MB space.

Pdf Viewer For Android A Simple PDF Viewer library which only occupies around 125kb while most of the Pdf viewer occupies upto 16MB space. How to inte

A simple Kotlin wrapper around Anvil.

AnvilKotlin A simple Kotlin wrapper around Anvil. The only purpose of this library is to provide type safety to Anvil through Kotlin. Nothing more, no

Comments
  • Introduce repo layer for clean architecture

    Introduce repo layer for clean architecture

    Advantages for having a repo layer interface which promotes clean architecture:

    • It's easy to do unit testing
    • Easily replaceable implementation in future
    hacktoberfest-accepted 
    opened by hellosagar 2
Releases(v1.0.0)
  • v1.0.0(Jun 28, 2022)

    DocuBox

    DocuBox is an open-source app where you can securely upload your files on the cloud – from family pictures and audio recordings to spreadsheets, presentations and other confidential documents. All the files uploaded by the users are stored in an encrypted format.

    App Features βœ…

    • User Authentication - Supports email based authentication
    • File Uploading - You can upload your files on DocuBox and access it from anywhere around the world.
    • File Encryption - Files stored on DocuBox are stored in encrypted format, so your privacy remains protected.
    • File Sharing - You can share the access of your files with other users.
    • File Management - You can create multiple folders to organize your files in the way you want.
    • File Download - You can download your files and save them locally for offline usage.
    • File Search - Enhanced file searching which can give results quickly.
    Source code(tar.gz)
    Source code(zip)
    docubox.apk(6.46 MB)
Owner
Vaibhav Jaiswal
Software Engineer Intern - Android @Pratilipi Passionate Android Developer . Competitive programmer and Ui/UX designer.
Vaibhav Jaiswal
Flutter plugin that leverages Storage Access Framework (SAF) API to get access and perform the operations on files and folders

Flutter plugin that leverages Storage Access Framework (SAF) API to get access and perform the operations on files and folders.

Vehement 8 Nov 26, 2022
Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.

Codename One - Cross Platform Native Apps with Java or Kotlin Codename One is a mobile first cross platform environment for Java and Kotlin developers

Codename One 1.4k Jan 9, 2023
A React Native library making file access easier for developers as first class citizens, without the tears

React Native File Gateway A React Native library making file access easier for developers as first class citizens, without the tears. ⚠️ NOTE: This li

Jimmy Wei 4 Sep 11, 2021
This library is a set of simple wrapper classes that are aimed to help you easily access android device information.

SysInfo Simple, single class wrapper to get device information from an android device. This library provides an easy way to access all the device info

Klejvi Kapaj 7 Dec 27, 2022
This program will read from your android application string.xml file and generate translated strings.xml files in your preferred languages using google sheet.

Localize your application content This program will read from your application string.xml file and generate translated strings.xml files in your prefe

DhiWise 4 Jul 29, 2022
A Flutter implementation of Salesforce Marketing Cloud for iOS and Android

sfmc_flutter A Flutter implementation of Salesforce Marketing Cloud for iOS and Android. Features Setup Marketing Cloud (iOS and Android) Support for

Alex TarragΓ³ 5 Oct 19, 2022
Create an application with Kotlin/JVM and Kotlin/JS, and explore features around code sharing, serialization, server- and client

Practical Kotlin Multiplatform on the Web λ³Έ μ €μž₯μ†ŒλŠ” μ½”ν‹€λ¦° λ©€ν‹°ν”Œλž«νΌ 기반 μ›Ή ν”„λ‘œκ·Έλž˜λ° μ›Œν¬μˆ(κ°•μ’Œ)을 μœ„ν•΄ μž‘μ„±λœ ν…œν”Œλ¦Ώ ν”„λ‘œμ νŠΈκ°€ μžˆλŠ” κ³³μž…λ‹ˆλ‹€. μ›Œν¬μˆ κ³Όμ •μ—μ„œ μ½”ν‹€λ¦° λ©€ν‹°ν”Œλž«νΌμ„ 기반으둜 ν”„λ‘ νŠΈμ—”λ“œ(front-end)λŠ” Ko

SpringRunner 14 Nov 5, 2022
Create an application with Kotlin/JVM and Kotlin/JS, and explore features around code sharing, serialization, server- and client

Building a Full Stack Web App with Kotlin Multiplatform λ³Έ μ €μž₯μ†ŒλŠ” INFCON 2022μ—μ„œ μ½”ν‹€λ¦° λ©€ν‹°ν”Œλž«νΌ 기반 μ›Ή ν”„λ‘œκ·Έλž˜λ° ν•Έμ¦ˆμ˜¨λž©μ„ μœ„ν•΄ μž‘μ„±λœ ν…œν”Œλ¦Ώ ν”„λ‘œμ νŠΈκ°€ μžˆλŠ” κ³³μž…λ‹ˆλ‹€. ν•Έμ¦ˆμ˜¨ κ³Όμ •μ—μ„œ μ½”ν‹€λ¦° λ©€ν‹°ν”Œλž«νΌμ„

Arawn Park 19 Sep 8, 2022
πŸ”₯πŸ–Ό Display images stored in Cloud Storage for Firebase using Coil

firecoil firecoil allows you to load images from Cloud Storage for Firebase in your Android app (through a StorageReference) , using the image loading

RosΓ‘rio Pereira Fernandes 35 Oct 4, 2022