User my own server when developing the client side

Hi,

I am really new to builder.io, I am developing a prototype app and I have started to make the ui, but i want it to interact with my server on localhost.
My server is already built and it is really complex.

For now I am still on the free version and I wonder if describing my server to the bot I can make him connect to my localhost?

What us the best way around it?
Thanks

Hello @3director,

At the moment, Builder.io cannot directly connect to a server running on localhost since it isn’t accessible outside of your machine. To work around this, you have a few options:

  1. Expose Your Local Server Publicly

    • Use a tunneling service like ngrok or Cloudflare Tunnel to expose your local server with a public URL.

    • Once you have the public URL, share it, and I can point your Builder app to it.

  2. Deploy Your Server

    • You can host your server temporarily and then set the API URL in your Builder project.

    • For a quick start, you can use the Connect to Netlify button for deployment.

  3. Run Your Project Repo Locally with Fusion

    • Fusion allows you to run Builder locally and connect it to your localhost server.

    • You can follow the instructions here: Run Builder projects locally.

This way, you’ll be able to test your UI with your server and continue building your prototype smoothly.

Thanks,

Thanks, once i have managed to use fusion, how to config my server address so the client will know how to call it…
is there a tutorial about interacting with other server?
Thanks

Hello @3director,

You can refer to the following article for reference

1 Like