Coder Social home page Coder Social logo

cttricks / xtinydb Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 2.0 95 KB

The xTinyDB is an experimental database service that communicates with a Web service to store and retrieve information.

Home Page: https://cttricks.com/xTinyDB/

License: MIT License

PHP 19.85% JavaScript 46.19% CSS 33.96%
nosql-database php androidappdevelopment appinventor tinywebdb niotron

xtinydb's Introduction


✨ The Open Source TinyWebDB Alternative ✨

Build Status Node version Twitter

WebsiteCommunityTwitter

The xTinyDB is an experimental database service that communicates with a Web service to store and retrieve information. This micro document-based no-SQL database is inspired by the TinyWebDB component of MIT Appinventor. I have made many changes to CRUD data easily with a little bit of security and more features.

Although this service as an extension is usable, it is very limited and meant primarily as a demonstration for people who would like to create their cloud database that talks to the Web. In this we have methods to store a value under a tag, retrieve the value associated with the tag and delete/clear tags and values from the server. The interpretation of what “store” and “retrieve” means is up to the Web service.

Features

  • ⚡ Multiple values associated with the tags can be stored/updated in a bucket at a time..
  • ⚡ Can call the entire bucket which returns a list of Tags, Values of those tags and Sub Buckets.
  • ⚡ One or more required tags can be called from a particular bucket at a time.
  • ⚡ One or more tags can be removed/cleared from the bucket.
  • ⚡ Entire bucket can be remove/cleared from the server

Production Setup

We have GUI and Vendor files to host on the server. Let's first set up the vendor/xTinyDB database on our server. Also, note that you don't have to rename any of these four files.

  • Step1 - Download the four files available in the vendor folder of this git repository. (storeValue.php, getValue.php, clearValue.php, dbInfo.php).
  • Step2 - Open dbInfo.php file using any editor ( you can even use notepad ) and change storage & accessKey Here, storage is the secured path to DB files. AccessKey is the key to make secure calls from the client side.
$xTinyDB = array(
	"storage" => "storage-area",
	"accessKey" => "sampleaccesskey01"
);
  • Step3 - On your cPanel, go to the public directory and create a directory/folder xTinyDB. Now create another dir/folder and name it anything you like to name your first database. And upload all these four files here. Note that

⚠️ Create an index.php file (5th file). Only if the direct access to dir xTinyDB is public.

GUI Setup

image|690x252

Click here to download the zip files of xTinyDB GUI or download files of the GIU section of this git repository. Upload it to the xTinyDB directory that we created earlier.

Done, now simply open xTinyDB index.php in new tab. ( Example: https://yourdomain.com/xTinyDB/ )

Control Buttons On GUI

  1. Add a new tag in the current bucket or in a sub bucket of the current bucket.
  2. Hide/Show tags and values in UI
  3. Hide/Show sub buckets in UI
  4. Refresh current bucket
  5. Copy JSON of the current bucket
  6. Delete/remove/clear the current bucket

Here we have an input field to enter the bucket path to view it. On top of all these, you can also use ctrl+b to move back to the previous bucket.

🎯 Why i'm building this ?

Most app developers equip themselves with either spreadsheet or a database to solve their cloud-storage needs. Spreadsheet, MySQL DB, Airtable, and Firebase, etc. are used by a +Thousand app developers making apps on MIT Appinventor and its distributions every single day. However, I made this document-based no-SQL database just as an experiment. It is inspired by the TinyWebDB component of appinventor. As very few developers actually use this component. So I took an approach to improve it a bit more and came up with this xTinyDB stuff. It is not a complete database solution. But yeah! Anyone can use this in their small/big projects at their own risk. 😄

📌 Important Links

xtinydb's People

Contributors

cttricks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xtinydb's Issues

Getting error

#1 (comment)
Dear sir you said this above and now i am not using free hosting and using stable hosting.. still i am getting error..

Can you little give me information what type configuration i have to do in my hosting ..you said before that i am getting error because hosting is trying to target file from outside ..so can u please help me and can you little more explain that what configuration have to do ..
I really need this DB

Error-java.io file not found

I love your hard work ..

i am getting error while trying to get and store value by mobile
java.io.filenot found exception; https;//test.000webhostapp.com/xTinyDB/v2/getValue.php and /storeValue.php how to fix this problem

and while i am trying to open https;//test.000webhostapp.com/xTinyDB/v2/getValue.php in laptop then it showing me error

Warning: file_put_contents(https://test.000webhostapp.com/xTinyDB/v2/bucket-locators.json): failed to open stream: HTTP wrapper does not support writeable connections in /storage/ssd4/451/17193451/public_html/xTinyDB/v2/dbInfo.php on line 18

Notice: Undefined index: Authorization in /storage/ssd4/451/17193451/public_html/xTinyDB/v2/dbInfo.php on line 23
{"status":"Failed","msg":"invalid access key"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.