how to build a mobile application created with ionic and laravel? - laravel

I have developed an application using ionic for the frontend and laravel for the backend ... now I wish I could see it running on my phone, but I don't know what I need to buy as hosting and database, which files should I upload etc ... any help?
php version: 7.4.1
laravel framework: 8.78.1
phpmyadmin: 5.0.1
mariaDB: 10.4.11
mysql: 7.4.1

I see two questions:
How to try the app on your phone:
When you build an App, you can read here about how to deploy it to your phone by e.g. transferring an APK to your Android phone. To install the APK, you have to enable the developer-features in your phone's settings.
How to host the Laravel backend (to try it with your app):
You could use your local development environment. E.g. when your laptop with your laravel backend running and your phone are in the same Wifi-Network, you just need to expose the project to the network so that the app on you phone can reach it.
Hosting it on a public server would require you to have a domain. The server has to meet the needs of your project. You have to look for the correct php-version, php extensions, etc (Laravel Docs on Server requirements). For a small project, most shared-hosting servers with ssh-access and MySql database would fit. You could put some more effort by choosing a server from digital ocean, where a droplet is just a few bucks but you have to do all the configuration by yourself.
Hope that helps!

For running it on mobile you could use capacitor with ionic Capacitor

Related

App Ionic+Laravel on my smartphone, Can i run it locally?

I created an application using ionic for the front-end and laravel for the back-end, I wanted to test the app on my smartphone without buying hosts, etc ...
I created the apk (using ionic cap build android), I installed it on the device and obviously the calls to the database do not work ...
searching on the internet I tried to replace localhost:8000 with my-ip-address:8000 but:
nothing, although if I search from the browser of my smartphone I enter the default view of the laravel project.
now if I try to start the livereload (ionic serve) on my pc, it gives me error: Failed to load resource: net :: ERR_NAME_NOT_RESOLVED.
Is it possible to test my application on my smartphone by running Laravel locally?
You can give your API an external URL using a tool like NGROK or Local tunnel which will give you a public URL for your local API.
https://ngrok.com/
https://github.com/localtunnel/localtunnel

How to deploy spring boot rest api and angular 6+ application with mysql in ubuntu 18 in digital ocean?

I have created a web application using angular 6+ and spring boot. I use angular 6+ for front end and in my local machine angular project is run under http://localhost:4200. And I using spring boot maven project to create rest api for my application and it is run under http://localhost:8008/api. I use mysql as my database and database url is http://localhost/test_db.
Now I want to deploy this web application to vps. So all the users can access through static ipv4 address. (Ex: 123.46.79.1)
So I want to know how to deploy this web application correctly. And also specially I want to update the application time to time. So it is very important to have a easy method to update the full stack web application easily in future.
These are the 3 main components I want to deploy.
angular front end. (It should access from ipv4 address Ex. 123.45.67.8)
spring boot rest api.
Mysql Database. (It should access from navicate or some other tool remotely)
This is what I am currently knowing.
* connect digital ocean droplet using SSH key and Putty
* install ubuntu 18.2 on digital ocean
* install apache2
Please provide me the steps with the necessary ubuntu cli commands as well.
****note : I want to use only digital ocean for now.***
Thank you.

Laravel switching from MySQL to MSSQL

I'm currently developing a web apps for my client, and my development server (a shared hosting server) only support MySql. But I just came to know that my client on whose server I'm going to deploy the laravel web apps on only support Mssql.
So my question is, later when I deploy the laravel web app on my client's server, what should I do to make the web apps works perfectly well? Is it enough if I just change the default driver from mysql to sqlsrv?

How to deploy an Ionic app with CouchDB and PouchDB using Heroku?

I just followed along with this tutorial to create a Todo list app with user authentication: https://www.joshmorony.com/part-2-creating-a-multiple-user-app-with-ionic-2-pouchdb-couchdb/
The app is built with the Ionic 2 Framework using CouchDB and PouchDB to create a separate database for each user. However, I am totally confused as to how to move this setup from my local machine to a Heroku server.
Can anyone provide a step by step process to accomplish this?
Heroku no longer supports couchdb addon seems it was closed sometime back. For couchdb-pouchdb hosting you can use IBM's cloudant, irish couch or digital ocean.
For my case i setup an ubuntu16.04 droplet on digital ocean, installed and configured couchdb on it. You can check out this list of couchdb hosting sites. Hope this helps

Does an online Android application generated by GeneXus connect to the database?

I'm using GeneXus X Evolution 3 and I want to install it in a production environment.
The web app works well, but the android one does not. It fails when starting.
Does the android app connect to the database hosted in the server? If so, how do I need to configure ports or what do I need to set in the datastore properties?
The native android application does not access your database. It accesses REST services hosted in your applications server and those connect to the database.
So what you have to set is the Services URL property.
If you have problems accessing the REST services, you may have some issues related to URL Rewrite or other common issues.

Resources