⚡️ Host Your Own TinyWebDB Node Server - NodeJS | On Shared Hosting

In this tutorial, you’ll get to know about hosting your own TinyWebDB Instance on any shared hosting. I’m assuming that you already have shared hosting and you are logged in to your cPanel.

:zap: Host your own TinyWebDB Instance

Now follow the below-given steps or Click here to watch the tutorial video to set up Node Server.

  1. On cPanel, Under the SOFTWARE section you’ll get the Setup Node.js App option. Click on that
  2. Click on the CREATE APPLICATION button.
  3. Provide Application root , Application URL , Application startup file , and Passenger log file , Click create.

  1. Now got to file manager and on /home/<Your-Domain-Name>/ you’ll find tinywebdb folder as we have set Application root to tinywebdb.
  2. 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 - Niotron Component",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "Ct tricks",
  "license": "MIT"
}
  1. Create another file database.json and paste the below-given demo data in that.
{
  "tag1": "Hello_World",
  "tag2": "Hello_Cttricks"
}
  1. Now open index.js file and paste the codes of index.js file of this repo & save it.
  2. On NodeJS panel Stop App and click Run NPM Install (Refresh the page if the button is still not clickable)
  3. Now click START APP button.

Now visit your Application URL. It should https://<Your-Domain>/tinywebdb/ . You can access it by clicking on the :arrow_upper_right: open button on the right side of the Application URL.

:warning: Please note that
When you paste the Application URL in Service URL of TinyWebDB component, remove / from the end of the url. Example https://<Your-Domain>/tinywebdb

:rocket: Click here to watch tutorial video


:arrow_down: Download demo AIA
:arrow_down: Download demo APK


Hit :heart: if you learn something new today. Enjoy your own TinyWebDB Service! :partying_face:


7 Likes

It’s really nice guide @tanishraj, it will help a lot :smiley:

I hit this :slight_smile: :+1:
I love this Guide
I will Make my own one…

Thanks @tanishraj for this guide

#off topic @tanishraj can you please make a guide how to make this kind of block please
8ed428881513a2c57def9548d158340c88b334ad

1 Like

Very easy question …

How ? @Faraz_Firoz I want to create the same thing where the input is the url and the output is the site’s html code

1 Like

It’s actually possible but not a very good idea, it will freeze app until response is recieved.

2 Likes

Okay @Krish thanks for letting me know :grinning:

Yeah because even though called from a different thread, the main thread must wait for the result.

2 Likes

@tanishraj can you also tell how to do this with vercel.app and other alternatives