currently I doing a mobile app using flutter as frontend and laravel php as backend, usually i need to serve and open xampp to use the local api and database, so what if I dont want locally anymore, buy a server right? any server suggestion for this kind of situation and how to configure that, this is my first time make the app online.
I try the linode host server and the url could access through browser and shows apache web page but I try to replace my local ipv4 address with server ip to call api online but it always say url not working
Using ngrok can be a convenient solution for exposing your local server to the internet temporarily during development or testing phases. Here's a step-by-step guide on how to set up ngrok for your Flutter mobile app with Laravel backend:
Install ngrok:
Run your Laravel server:
php artisan serveor another method you prefer.Expose your local server with ngrok:
<port_number>with the port your Laravel server is running on (usually 8000 or 8000).Get your ngrok URL:
http://randomstring.ngrok.io.Update your Flutter app:
http://localhost:8000/api, replace it with the ngrok URL (e.g.,http://randomstring.ngrok.io/api).Test your app:
Remember, ngrok provides a temporary solution for testing and development purposes. For production, you'll want to deploy your Laravel backend to a proper server. Services like AWS, DigitalOcean, or Linode can be suitable options for hosting your backend. Make sure to secure your server properly before deploying your app in a production environment.