How to integrate Backendless with website

How can I integrate my Backendless app with my website such that changes on the website are reflected in the app and vice versa?

Hi @Nkekere_Tommy_Minimann !

To reach this goal you should use Backendless as backend storage for your data. You can host your pages or logic which renders them on your server but use database and file system from Backendless via Backendless API. Alternativly, if your site is simple HTML+ client JS you can host everything on Backendless. We provide range of SDKs for different languages and also REST API to interact with Backendless platform. For more information about SDKs you can check our documentation Backendless For Developers | Backendless Backend as a Service Platform

Regards, Andriy

It’s an e-commerce website. But I don’t understand your explanation.

I meant that in case if you want to use Backendless for storing data in database and for storing your files in Backendless app filesystem you should modify logic which stores data to store it to Backendless instead of your database or filesystem. If to talk about site from Model-View-Controller point of view you should make changes to your “model” logic.
As result you will finish with “thin” site which delegates all work with DB and filesystem to Backendless.
If your site based on some of CMS like Magento, Drupal, e.t.c. it will be very hard or just imposible to complete such task since CMS based sites are tightly coupled with standart database drivers and OS filesystem.

Regards, Andriy

I take it that what you mean is that after creating the website I have to host it on Backendless. This means you also offer hosting service. If I am correct and I can host an e-commerce site on Backendless then I’d like to know how I can accomplish that syncing it with my app.

Could you describe how you understand the process of “syncing to your app”?

Hosting a site on backendlessappcontent.com and then linking the site to the app. But I’ve not done anything like this before so am totally ignorant of how it should be done

I am just trying to understand the requirements. I need to understand in terms of the user experience what “linking the site to the app” means in your mind.

It’s an online marketplace. The mobile app and the website should function exactly alike from the user’s perspective. If a user uploads an item to the marketplace via the mobile app, another user should be able to search for the same item via the mobile app or via a web browser (pointing to the website) and vice versa. But the mobile app and the website should be able to function independently.

What you should do is this:

  1. Develop your mobile app
  2. Develop your website
  3. Use backendless database for (1) and (2)

When mobile app created/updates data, it goes into the database. When the website reads data from the database, it will have the same data visible to the mobile app (and vice versa).

Hope this helps.

Regards,
Mark

Thanks

“Use backendless database for (1) and (2)”
Can i accomplish this with Backendless if website is a WordPress site? Ie. Can I install WordPress in my web folder and accomplish the above scenario?

Hello @Nkekere_Tommy_Minimann

In your WordPress site, you can use REST or our JS-SDK I assume.

But you can’t upload the site to the Backendless Files since as far as I know WordPress is running on PHP which is not supported in our FileService

I can propose you try to build your site using our UI-Builder, you can easily start by create a new app based on a blueprint where everything (DB/Files/UI/etc) is already configured and you need just to modify it according to your needs. We frequently extend a list of our blueprints, so if you do not see any suitable for you just let us know, and who knows, maybe this one is already in progress and it will be available soon. So follow up by our blog where we add posts about new blueprints.

Regards, Vlad

I want to create a classified ads website that works as a desktop alternative to my mobile app. For example a user can post an advert at the website and another user can see that advert via the mobile app or vice versa. The website will be similar to this : www.jiji.ng
How can I achieve this with Backendless? Do you have any blueprints similar to this that I can modify to my own use case?
Also, which blueprint can I use to create a simple blog like the Backendless blog?

let’s keep our conversation about blueprints in one place, let’s say in this thread :wink:

you can find all available blueprints in our marketplace or when you create a new app

I saw these threads while searching, this is exactly what am trying to accomplish.

Mark made the following comment

“I believe it would be an overkill to use external database. I’d use our JS SDK for the web side of the app, this way both mobile and web can communicate with the same backend. Wordpress would be used just to spit out static files.”

Does he mean I can accomplish it in a straight forward manner by building from scratch with your JS SDK and hosting in my web folder? It seems what he is saying is that bringing WordPress into the mix would complicate the process.

yes, but I would say with using UI-Builder, because the JS-SDK is designed for communication with the Backendless Server and doesn’t include any UI components

Fine. I understand that now.
But which of your blueprints can I use to create a simple blog?

As I said earlier we do not have one, unfortunately.
But, each blueprint has a demo app so you can take a look at all of them and maybe you find something similar to your ideas

Thank you