Getting started
Local development
Run your local setup inside of a Whop iFrame with the Whop proxy
If you are building a Whop app inside of our website, you can use this proxy to run your local setup inside of a Whop iFrame. You can use this proxy with any application written in any language and any framework.
NextJS / Javascript app
- Add the proxy as a dev dependency.
- Update your
package.json
dev script to include the proxy.
You can update the dev command to match your framework requirements. You can also other commands wrapped by the proxy in a similar way.
- Run the proxy.
Standalone mode (other frameworks)
-
Run you app on your local machine on some port, for example 5000.
-
Run the proxy in standalone mode.
This will run the proxy as an independent process. It will start a server on port 3000 and forward requests to port 5000 and append the user token in the headers.
Proxy Command Options
The proxy can be configured using the following command line options: