How to Access a Quasar App in your Phone with Local Development Server using Laragon
- Get your computer’s IP address.
- In your quasar project, change your .env
API_URL
to your local computer’s IP address e.g.API_URL=http://192.168.0.189:8000/
. Make sure to include the port8000
because this is the port used as seen in the picture in step number 4. - Right-click on Laragon and open your project’s Nginx configuration as seen in the picture below.
4. Put the IP address in the server name as seen in the picture below. Make sure this is the only project with the set IP address so it will not conflict and resolve to other projects.
5. Reload Laragon’s Nginx as seen in the picture below.
6. Open a terminal and run your quasar app by running the command quasar dev
.
7. Open your mobile phone’s Chrome browser and navigate to the URL of your local computer’s IP address with the port used by quasar (usually 8080), in my case it is http://192.168.0.189:8080/
.
8. You may now interact with your quasar app in your phone and REST API calls in you quasar app should work well.
If you find this post helpful to you, you might want to buy me just a little coffee. Thanks! 😉
Happy Coding!!! 😊😊