This is a template for a whop app built in NextJS. Fork it and keep the parts you need for your app.
To run this project:
-
Install dependencies with:
pnpm i
-
Create a Whop App on your whop developer dashboard, then go to the "Hosting" section and:
- Ensure the "Base URL" is set to the domain you intend to deploy the site on.
- Ensure the "App path" is set to
/experiences/[experienceId]
- Ensure the "Discover path" is set to
/discover
-
Copy the environment variables from the
.env.development
into a.env.local
. Ensure to use real values from the whop dashboard. -
Go to a whop created in the same org as the app you created. Navigate to the tools section and add your app.
-
Run
pnpm dev
to start the dev server. Then in the top right of the window find a translucent settings icon. Select "localhost". The default port 3000 should work.
-
Upload your fork / copy of this template to github.
-
Go to Vercel and link the repository. Deploy your application with the environment variables from your
.env.local
-
If necessary update you "Base Domain" and webhook callback urls on the app settings page on the whop dashboard.
App not loading properly? Make sure to set the "App path" in your Whop developer dashboard. The placeholder text in the UI does not mean it's set - you must explicitly enter /experiences/[experienceId]
(or your chosen path name)
a
Make sure to add env.local Make sure to get the real app environment vairables from your whop dashboard and set them in .env.local
For more info, see our docs at https://dev.whop.com/introduction