Wordpress on new Firebase hosting - wordpress

I've found out about new Google Firebase Hosting recently and I was wondering if that would work for Wordpress website?
I got a bit confused them talking about static websites & web apps even though as far as I know Wordpress is dynamic...right? on their website it says:
https://firebase.google.com/docs/hosting/#key_functions
Whether you are deploying a simple app landing page or a complex Progressive Web App, Hosting gives you the infrastructure, features, and tooling tailored to deploying and managing static websites.
It looks like a nice Hosting platform for web, especially that they provide SSL certificates, but is it good for Wordpress?
Thanks!

I THINK it would be possible, you still need your SQL+PHP server and you should use it as WordPress backend, you need the WordPress REST API and a plugin with hooks in transition_post_status, comments... and whatever you want to show in your front end, use WordPress API endpoints to send the JSON to the firebase database... after your template should use a Javascript framework in order to make JSON requests to the firebase database and show the data in the browser... It would be difficult but I think it could be the cheaper and best solution ever for a high traffic website (plus all the benefits of firebase).

Nope. Firebase doesn't provide any of the requirements necessary for Wordpress, that being MySQL and PHP on the server side. Firebase provides a JSON store accessible via an API, and static hosting for apps that can access said API.

Related

Is WordPress's API not accessible for free accounts?

I signed up for a free WordPress account with the intent of integrating their blogging capabilities as a 'feature' into my React-based app. However, after signing up for the WP account and creating a few blog posts, I attempted to acccess the API by appending "/wp-json" to my WP account, as per the official documentation.
Everytime I use this method to access, however, all I get is a 404 error. I've seen elsewhere on Stack Overflow that this might have to do with Permalinks not being set properly. However, Permalinks cannot be altered in 'free' accounts, only in 'Pro' accounts. I therefore suspect that WP has disabled the API capabilities for the free accounts. I can understand why they would do this, since they want to get people pay to use their platform (and not get everything for free via an API). Am I correct in this?
Or can anyone who has a free account who has access to the API correct me here?
Thanks in advance,
On the WordPress.com platform the REST API is actually hosted and structured at https://public-api.wordpress.com/wp/v2 for all sites. In addition, there's a /sites/ endpoint that will namespace your specific site.
For example, the root endpoint for your site would be https://public-api.wordpress.com/wp/v2/sites/dsgasdgfsa.wordpress.com/. The other endpoints behave the same way as they would on a self hosted platform.
For example, your pages would be found under https://public-api.wordpress.com/wp/v2/sites/dsgasdgfsa.wordpress.com/pages
More info https://developer.wordpress.com/2016/11/11/wordpress-rest-api-on-wordpress-com/

Can a wordpress website be used as mobile app backend?

I have a project where I need to make a mobile app for a wordpress website. It will have some features that are not in the web app yet. I've made some research and there seems to be ways to make api requests to some endpoints that are made available by wordpress. I am a rookie when it comes to planning a backend structure, building it from scratch, and deploying it, but I have developed new features for an existing node.js backend for a mobile app before. Considering all of this, can I use the wordpress api for my mobile app without any security, performance, or compatibility issues or should I start building a backend for it?
Thanks in advance.
Yes, we can use WordPress website for mobile application backend.
For this we need to make an API request according to WordPress structure and database structure.
A new development in WordPress is the WP-API, which allows you to output your site content into a standardized JSON API. Since mobile apps normally use an API to get remote data, using the WP-API is a great way to get your WordPress data into a mobile app.
We can use inbuilt plugins for the same purpose like AppPreser- Mobile App Framework.

Hosting ASP.NET Web API alongside a WordPress site on a GoDaddy Windows Hosting

The gist is, my I was requested to make an ASP.NET Web API backend for an app, but the website that the person will be hosting it on already has a wordpress site configured. Is there any way to host that api under thesite.com/webapi, for example, with that specific hosting?
The thing is, I'm not familiar with how WordPress is handling its URL routing, I don't have access to the control panel to experiment and without direct access to IIS Management Console I basically have no clue what to do.
Or maybe, if not that, would it be possible to set up a this API on some random port with that hosting? I.e. mysite.com:8001
In my opinion, it is better to create a subdomain for your API like webapi.thesite.com because then you won't need to configure your WP site not to catch requests for thesite.com/webapi and with this solution you won't need to do anything except registering a new subdomain

How webmails work with Google cloud hosting? Also how can I setup newsletter solution with MailWizz WordPress plugin in GCH?

I have been building a WordPress website and I am using Google Cloud Hosting as my hosting solution. I am very new in using the Google cloud hosting and I found it's not easy to understand things as I'm even not anyone with IT skill but previously worked with Cpanel hosting several times.
I am trying to establish similarities between GCloud and CPanel hosting but still failing. Researching a lot and I have a way to setup GCloud in CPanel but not sure if it will work and I am not doing that.
However, I want to create and access webmails (eg. yourname#domainname.com) for my personal and business uses. I am aware that I can create them with Zoho or any other mail servers with some costs but I am looking for a single tap solution keeping everything in one place. Hence, I am preferring Google cloud itself.
I am going to use MailWizz for Newsletters which will be also hosted in my own storage/server. It's just that MailChimp gives us email server but we need our own for email list/templates and data. But how can do all these? Can I create and access all these in Google cloud hosting?
If there is anyone to give me a solution regarding all these considering the preferences (I am not likely to use any other email hosting) this will be awesome and help me to make a decision for my upcoming websites. Thanks in advance.
R. K. Mahin
GCP by default does not allow outbound connections for the port 25. 1
However there other approaches to achieve this too:
You got SendGrid, MailGun and Google Apps. They provide solutions which doesn't require SMTP access from a GCE instance.
There is also an alpha feature you can try to request called Cloud Mail. You can request to get your project whitelisted through Google Cloud Support.
If you can configure MailWizz to use other port than 25, you wont get into any trouble. You can create your own instance groups with a MailWizz server and a Load Balancer. GCP even got a Marketplace where you can find a lot of solutions to work with Wordpress and automatically create your own environment.

SPA with content management

I would like to build Single Page Web Application (SPA) with React.js.
Application would need some Content Management System for back-end. I was thinking to use WordPress and their REST-API's but I don't know how to retrieve data from my wordpress installation.
Back-end and front-end would be in different domains so just building WP theme with React.js wouldn't work.
Basically, I don't know how to call and populate data from wordpress to my front-end.
I would need someone to point me to the right direction. And, maybe recommend easier CMS to use in this task.
Actually it is very easy to access your WordPress website data through HTTP REST API
Here you have the full documentation on WordPress REST APi
http://v2.wp-api.org/

Resources