|
| 1 | +<p align="center"><img alt="clorabase" height="300" src="/Banner.png"></p> |
| 2 | +<p align="center"> |
| 3 | + <img src="https://img.shields.io/github/license/ErrorxCode/Clorabase?style=for-the-badge"> |
| 4 | + <img src="https://img.shields.io/github/stars/ErrorxCode/Clorabase?style=for-the-badge"> |
| 5 | + <img src="https://img.shields.io/github/issues/ErrorxCode/Clorabase?color=red&style=for-the-badge"> |
| 6 | + <img src="https://img.shields.io/github/forks/ErrorxCode/Clorabase?color=teal&style=for-the-badge"> |
| 7 | +</p> |
| 8 | + |
| 9 | +<p align="center"> |
| 10 | + <img src="https://img.shields.io/badge/Author-Rahil--Khan-cyan?style=flat-square"> |
| 11 | + <img src="https://img.shields.io/badge/Open%20Source-Yes-cyan?style=flat-square"> |
| 12 | + <img src="https://img.shields.io/badge/Written%20In-Java-cyan?style=flat-square"> |
| 13 | + <img src="https://jitpack.io/v/Clorabase/Clorabase.svg"> |
| 14 | +</p> |
| 15 | + |
| 16 | + |
| 17 | +## Clorabase |
| 18 | +> *Turn your github repo into a No-SQL database* |
| 19 | +
|
| 20 | +Clorabase is a free backend alternative (BaaS) for Android and java apps that uses GitHub API & Github repo to facilitate NoSQL database & NTFS like storage system. Clorabase is mostly made for small apps which has small backend/server/database requirements. If your app scales large or you need more database storage or bandwidth, Clorabase may not serve you. You should consider using [Firebase](https://firebase.google.com). Clorabase AIMS provides a money-free production-ready backend for building Android apps as a hobby or start-up. It is for those who don't earn money from their apps and build apps just for learning or non-profit use. |
| 21 | + |
| 22 | +<a href="https://github.com/Clorabase/Clorabase/releases/download/0.5/Console-stable-v0.5.apk"> <img alt="Download console" height=40 src="/button.png"></a> |
| 23 | + |
| 24 | +## Features |
| 25 | +- No account needed |
| 26 | +- Uses GitHub usage & quota |
| 27 | +- Absolutely Free, No paid plans |
| 28 | +- Serverless NO-SQL database |
| 29 | +- In-app messaging |
| 30 | +- In-app updates |
| 31 | +- Cloud storage for apps |
| 32 | + |
| 33 | + |
| 34 | +## Implementation |
| 35 | +#### To add SDK |
| 36 | +In your project **build.gradle** |
| 37 | +``` |
| 38 | +allprojects { |
| 39 | + repositories { |
| 40 | + ... |
| 41 | + maven { url 'https://jitpack.io' } |
| 42 | + } |
| 43 | + } |
| 44 | +``` |
| 45 | +In module **build.gradle** inside **dependencies** block: |
| 46 | +- For Android SDK: |
| 47 | +``` |
| 48 | +implementation 'com.github.Clorabase.Clorabase:SDK:0.5' |
| 49 | +``` |
| 50 | +- For Java SDK: |
| 51 | +``` |
| 52 | +implementation 'com.github.Clorabase.Clorabase:Clorabase4j:0.5' |
| 53 | +``` |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | +#### To generate a GitHub OAuth token |
| 58 | +1. Goto [Create token](https://github.com/settings/tokens/new) |
| 59 | +2. Select the 'Classic' token type and set the expiry to 'No expiration' |
| 60 | +3. Check the following in the scope sections: |
| 61 | + - delete_repo |
| 62 | + - repo |
| 63 | +4. Click generate. |
| 64 | + |
| 65 | +Now you can use this token to access the console and SDK. |
| 66 | + |
| 67 | +⚠️**NOTE:** Never publish your code containing this token on GitHub, if you do, then the token will automatically be deleted and your code will break |
| 68 | + |
| 69 | + |
| 70 | +### Documentation |
| 71 | +- [User guide](https://clorabase.github.io) |
| 72 | + |
| 73 | +## Clorabase vs Firebase |
| 74 | +The rule of thumb is, if you’re building a small project or dedicated mobile application, and you don’t mind the high bandwidth or database storage, Clorabase is a great place to start. If you’re looking for a more general-purpose data solution, value performance at scale and advanced querying, Firebase is going to serve your needs best. |
| 75 | + |
| 76 | +See the table below to compare Clorabase and Firebase with their features. |
| 77 | + |
| 78 | +| Feature | Clorabase | Firebase | |
| 79 | +| :--- | :--- | :--- | |
| 80 | +| **Primary Use Case** | Small, non-commercial Android apps, hobby projects, proof-of-concepts, learning. | Professional, scalable, and cross-platform applications (mobile & web). | |
| 81 | +| **Cost** | **Absolutely free, no paid plans or usage barriers.** | **Freemium model:** Generous free tier, but a "pay-as-you-go" plan for high usage. | |
| 82 | +| **Backend Storage** | Your data is stored in your own **GitHub repository** | Data is stored on **Google's cloud infrastructure** (Firestore, Realtime Database, Cloud Storage). | |
| 83 | +| **Scalability** | **Limited.** Best for small-scale applications. It may not perform well with large amounts of traffic or data. | **Highly Scalable.** Built to handle millions of concurrent connections and terabytes of data. | |
| 84 | +| **Core Services** | Databases (NoSQL), Cloud Storage, Push Messaging, In-App Messaging, In-App Updates. | Databases (Firestore, Realtime DB), Authentication, Cloud Functions, Hosting, Machine Learning, Analytics, Push Notifications, and more. | |
| 85 | + |
| 86 | + |
| 87 | +#### Choose Clorabase when... |
| 88 | + - Your primary concern is **cost**, and you need a completely free solution. |
| 89 | + |
| 90 | + - You are building a personal or hobby project that won't have a large user base. |
| 91 | + |
| 92 | +- The app is an Android or Java only project. |
| 93 | + |
| 94 | + - You have a simple data model and don't require advanced queries, authentication, or other integrated services. |
| 95 | + |
| 96 | +- You are comfortable with a more hands-on, DIY approach and are willing to handle things like user authentication yourself. |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | +## Contributing to Clorabase |
| 101 | +First off, thank you for considering contributing to Clorabase! It's because of people like you that this project can be what it is today. |
| 102 | + |
| 103 | +We welcome all types of contributions, from reporting bugs and suggesting new features to writing code and improving documentation. |
| 104 | + |
| 105 | + Refer to [contribution.md](/contribution.md) to start contributing |
| 106 | + |
| 107 | +*-> For personal assitance, you can contact the repo owner at [email protected] or [x1.rahil ](https://instagram.com/x1.rahil) on instagram * |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | +## Support |
| 112 | +This project comprises of lot's of energy, brainstorming, coding, testing and time. If this project has helped you in any way, please consider giving it a ⭐ to show your support and help it grow! Also, *watch* the repo to notify about updates. |
| 113 | + |
| 114 | +[](https://github.com/piyushsuthar/github-readme-quotes) |
| 115 | + |
| 116 | + |
| 117 | + |
0 commit comments