Can i deploy a react and mysql on a shared hosting? - deployment

this guy Short Article
deploy a react app with c-panel, but a app that doesnt connect to a db (mysql)?
can i do it the same way with a app that connected to mysql?

Related

NativeScript : I have to develop an offline app for Android + iOS + Web app. Offline data will be stored in SQLite DB

Using native script, it is possible to access SQLite DB. But is it possible to use SQLite DB from NativeScript + Angular web app?
Anthing you can do in NativeScript Core, you can also do with NativeScript Angular, so yes you can access a SQLite database with NativeScript Angular as all you need is access to the local file system to store the SQLite database.
On the other hand, you mentioned "web app" so not sure if you meant to ask, "Can you access a SQLite database from a shared mobile/web app, using NativeScript Angular for the mobile app, and regular Angular for the web browser app?" If that is what you meant, then no, you wouldn't be able to access a SQLite database from the web app becuase SQLite databases are stored locally as a regular file, so there would be no way for an Angular web app in a web browser to access the same SQLite database file as a mobile app. For this situtation, you would need a traditional database server setup like MySQL, MariaDB, or PostgreSQL, hosted on an external server, where both the mobile app, and the web browser app can access that same database over a network connection. You could easily have the Angular web app, and the database cluster, hosted from the same server.
I personally use a PostgreSQL database server with a shared NativeScript Angular mobile app/Angular web app in production and it works really well. It is really nice to be able to share a lot of the Angular code (mostly core services) between the mobile and web app.

How can I deploy aqueduct application to web hosting plan using cpanel?

HI im very new to back end and Im learning aqueduct since I know dart programming. My question is how can I deploy the aqueduct to my webserver? I have a hosting plan to a2hosting which Im currently using for my wordpress site and I wonder if I can deploy my dart server to cpanel so I can use them as a backend to my flutter app? Thanks for any answer!
It depends on many factors.
Generally I'd say "no can do".
Get a VPS and host it there.
It depends on if your cpanel hoster has access via ssh enabled, which they usually don't. But even then I'm confident the hoster won't allow long running apps on his shared hosting server.
Dart has to be installed on the host, which is usually not the case on shared hosting servers
You need some kind of external oauth2 service
You need a postgresql database server, which cpanel provides but your hoster might not
Aqueduct official deployment guides are found on the their official site.
No you cannot install dart sdk on a2hosting shared hosting plan. Even if they give you SSH access, you will not have enough permission to install DART SDK. But you can deploy you app on heroku for free. You will get enough resources to run your app. You can upgrade your plan later according to your needs.
Check the heroku documention to deploy aqueduct app
Deploying an Aqueduct Application on Heroku

How do I deploy a MERN stack application to cpanel on a VPS server

Please anybody with the experience of deploying a MERN stack APP to cpanel on a VPS server? Kindly share! Thanks!!
You can upload an app to cpanel, that is developed using node,express and react (and in this case, you must ensure first that the cpanel supports nodejs apps, not all of them do so). But, mongoDB simply is not supported by CPanel. You can upload MERN stack app, but, the db won't be connected.
Once you have the cpanel access, create a folder to the directory, upload your project (make sure you take the integrated approach to deploy your mern app).
Go to the UI, create an app and address the folder to the app. Start the app. And your website is ready to use.

How to connect Swift to a postgresql database hosted on Google Cloud

I'm new to working with back-end, but have been running into issues trying to get my iOS app to connect to my PostgreSQL DB.
I have developed an app with Swift which is a game that I want to run locally on iOS devices. I have a PostgreSQL DB set up in Google Cloud Platform but I cannot figure out how to get the Swift app to connect to my PostgreSQL DB.
I've read some about using Vapor or Perfect to run the application using Googles App Engine but I'm not sure that is what I want to do since I want the app to run locally but there are a few aspects of my app that I need a global database for.
Would anyone be able to point me in the right direction of how I need to connect my Swift application with Google Cloud's PostgreSQL?
Your question is pretty much very similar to this one.
In short, the correct answer is you shouldn't connect your client side application directly to the database. Instead, you should build a service that can connect to the database, and act as a service between your application. This helps prevent any unauthorized queries to your database and provides better performance. If you wanted to do this on GCP, you could look into something like Google Cloud Functions or Google Cloud App Engine to act as a service.
An alternative would be to use a "Database-as-a-Service" like Cloud Firestore. This is a scalable, pay-as-you-go service with great mobile support.
Yeah sure you need a server, ruby on rails to connect to your Postgres database.
The server will facilitate data back and forth from the Google cloud Postgressql

Yesod Persona authentication problems when using Dockerized MongoDB

We are developing an application using Yesod and MongoDB and we are having users authenticate using Mozilla Persona. However we have a development database that we use across development machines and also on our staging machine. Anytime development or testing data is added or removed from staging we synchronize it with the development machines using Docker. Here is the problem: even though our databases are exactly the same (thanks to Docker) we are encountering a situation in which we are able to log into the application on staging but not on the development machines. Basically Yesod refuses to log the application. Any ideas as to why is this happening? Thank you in advance.