Q: Hi team, I believe I have a general understanding of headless CMS, that is to say, I have read a few ...
articles :)
Am I to understand that if I choose Contentrain, I could build a front end using say ReactJS, then use Contentrain in the backend for storing data, with support for CRUD operations?
Would I be able to use Contentrain as the backend for a mobile app, irrespective of the language/tool I use to build the app?
Thanks in advance for considering and answering my questions, all the best to you!
Thanks.
Sri
oraysercan
May 15, 2024A: Hi again Sri;
Contentrain is not an API based CMS, you won't get the solution provided by Strapi in the example you posted.
If you are using a solution such as React Native in your mobile application, you can manage your static content (for example, a button text) through Contentrain. The important point here is; It is important that you know that Contentrain keeps these contents in your Github repo.
Every time a new version of your application is released, the content that Contentrain creates on your Github repo is also included in your application.
We can't give an example for mobile but for the Web side you can see the use of Contentrain by going through and entering our open source repos and setting up an inside Starter project. We also have a few videos on the use of Contentrain on our Youtube channel.
https://github.com/Contentrain
Hi Sri;
Thank you for your interest in Contentrain.
If you want to use Contentrain, your application must be built with CI/CD from Github. Thus, Contentrain performs all CRUD operations on Github and your application is rebuilt with CI/CD for each change and distributed.
Contentrain may not be the right choice since the build and deploy processes in mobile applications are different from the web and are versioned and distributed to application markets with each new distribution.
But with a framework like React, Contentrain provides a great CRUD solution for SPA, SSG, SSR, and PWA Web applications as you mentioned.
However, by using Contentrain for your static content that will rarely change in your mobile application, you can provide high Developer Experience in the development processes and enable those who do not have coding knowledge to contribute to your application content.
Best regards
Sercan
Hi Sercan,
Thank you for getting back to me.
Do you have examples you could share with me/us about how best to use Contentrain?
In my mobile application example, what I was thinking was that I could use Contentrain to deliver data to the app (see here:https://strapi.io/solutions/mobile-cms). Is this possible with Contentrain?
Thanks Sercan for answering my questions!
Sri
Hi Sercan,
Thanks for your reply. I guess I misunderstood because Strapi was mentioned on the deal page and I thought Contentrain can do everything Strapi does.
So, instead of using WordPress as the backend CMS in a headless setup, I could use Contentrain, with the data stored in a Git repo. As long as the front end is a web based framework, I will be able to use Contentrain in the backend to manage the content, with the front end taking care of the presentation. Am I correct in my understanding?
Can Contentrain work with a private Git repo OR does the repo have to be public? I think I know the answer in the sense that if the repo is not public, no one would be able to access it. Contentrain is basically best suited for content that should be available to all, not for serving protected content, right?
Thanks for taking the time to answer my questions.
Sri
Hi Sri;
Yes, you are right, Contentrain manages your content on the GitHub repo.
Contentrain supports personal/organization accounts and also supports public/private repositories as well. In this way, your content is always secure and private.
Best regards
Sercan
Hi Sercan,
Thank you once again for answering my questions.
One last question and I am done asking them :)
Do you plan on introducing an API feature, like Strapi does?
Thanks!
Sri
Hi again Sri;
No problem with your question, we are always welcome any questions from our customers:)
We don't have a plan for an API in Contentrain's Git Based, only WebHook support will come. We are planning other products for API-based service.
Best regards
Sercan