This documentation is for Stably Classic. For the new Stably Web Editor, see Stably Web Editor.
Setting Up Localhost Testing
To create tests for your localhost application, you need to expose your local server to the internet using a tunneling service. We recommend using ngrok, a popular and reliable tunneling solution.Step 1: Start Your Local Application
First, ensure your application is running locally on your desired port (e.g., 3000):Step 2: Install and Set Up ngrok
- Download ngrok from https://ngrok.com/download and install it.
- Create a free ngrok account at https://ngrok.com
- Authenticate ngrok with your auth token (available in your ngrok dashboard):
Step 3: Create the Tunnel
Run ngrok to create a tunnel to your local application:Step 4: Use Your Public URL
Copy the forwarding URL (e.g.,https://xxxx-xx-xxx-xxx-xx.ngrok.io) and use it in the Stably App to point your tests to your local environment.
Important Notes
- The tunnel will remain active as long as the ngrok process is running. To stop the tunnel, press
Ctrl+Cin your terminal. - Free ngrok accounts have some limitations (session timeout after 2 hours, limited bandwidth). For production testing or longer sessions, consider upgrading to a paid plan.
- Each time you restart ngrok, you’ll get a new public URL. For persistent URLs, ngrok offers this feature on paid plans.