Using Node Server For TinyWebDB Component - Appinventor | Niotron
In this tutorial you'll get to know about hosting your own TinyWebDB Instance for FREE on any shared hosting.
I'm assuming that you already have shared hosting and you are logged in to your cPanel.
Now follow the below given steps or Click here to watch tutorial video to setup Node Server.
- On cPanel, Under SOFTWARE section you'll get Setup Node.js App option. Click on that
- Click on CREATE APPLICATION button.
- Provide
Application root
,Application URL
,Application startup file
, andPassenger log file
, Click create.
- Now got to file manager and on
/home/<Your-Domain-Name>/
you'll findtinywebdb
folder as we have setApplication root
to tinywebdb. - Inside this folder create
package.json
file and paste the below-given JSON
{
"name": "tinywebdb",
"version": "1.0.0",
"description": "Node JS Server For TinyWebDB - Ai2 Component",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "Ct tricks",
"license": "MIT"
}
- Create another file
database.json
and paste the below-given demo data in that.
{
"tag1": "Hello_World",
"tag2": "Hello_Cttricks"
}
- Now open
index.js
file and paste the codes of index.js file of this repo & save it. - On NodeJS panel
Stop App
and clickRun NPM Install
(Refresh the page if the button is still not clickable) - Now click
START APP
button.
Now visit your Application URL
. It shoud https://<Your-Domain>/tinywebdb/
. You can access it by clicking on the open
button on the right side of Application URL.
When you paste the Application URL
in Service URL
of TinyWebDB component, remove /
from the end of the url. Example https://<Your-Domain>/tinywebdb
A demo app is made on Niotron Builder you can use my AIA file or can create your own on any appinventor clone.
- Watch Tutorial Video on YouTube
- Download demo apk file
- Download demo aia file
Enjoy your own TinyWebDB Service! 🥳