Posted on Apr 17, 2020
If you need a quick and easy way to create a CMS (content management system) or a database backend for an app, then Restdb.io will amaze! Here are some features:
Below is a tutorial on how to create a simple CRUD (Create, Read, Update, Delete) app using Restdb.io with a PHP backend.
After you log in, you’ll need to be in Developer Mode to create a table. When creating fields in the table, Restdb.io offers numerous field property options including native and custom field validation.
To populate the table, you can
Using the Test Data option, I chose to generate 5 rows which gave me this.
Click on [Table] > API Docs and choose a language to see sample code for
Below is a screenshot for PHP using the Pear HTTP_Request package.
Below is a screenshot using NodeJS using the Request library.
This example shows how to do it using GoDaddy shared web hosting in cPanel. In cPanel, click the PHP Pear Packages under SOFTWARE.
We’ll actually be installing the HTTP_Request2 package. Search for “HTTP_Request2” and in the search results, click “Install”. Here’s a partial list of my installed packages including HTTP_Request2.
I created a test file called read.php which the following code.
After uploading it to my web host, opening the file in a browser shows me the data in JSON format, as expected, which you can see live at http://zabuun.com/restdb.io/read.php
You can also test the API by installing Postman (free), entering a query in the form of a REST URL, and entering your API key as a HTTP header.
If you work with other developers or editors, you can give them role-based access to your restdb.io account to manage data. An editor, for example, will not see the developer features and can simply add records using a user-friendly web form like shown below.