Hi Chris here 👋
In this guide, I will walk you through the process of setting up your Premium Kit, including installation, Convex backend configuration, authentication, and Stripe integration.
You can also find this in the website documentation.
After purchasing the kit, you'll receive an email with instructions to clone the repository. Follow these steps to get started:
# Clone the repository
git clone <repository-url>
# Navigate to the project directory
cd <project-folder>
# Remove the original remote
git remote remove origin
# Create and configure your own repository
# Add your new remote origin
# Install dependencies
npm i
# Set up environment variables
mv .env.example .env.local
Learn how to set up your backend server using Convex.
Important: Complete the installation process before proceeding.
-
Navigate to the project directory and run:
npx convex dev
-
When prompted, select:
- Option 1: "Create A New Project"
- Enter your app name
That's it! Your backend is now deployed.
-
Install required dependencies:
npm install @convex-dev/auth @auth/core@0.36.0
-
Run the initial setup:
npx @convex-dev/auth
When prompted about the URL of the local web server, simply press Enter.
-
Visit the Google Cloud Console
-
OAuth Consent Screen Setup:
- Enter your app name
- Add your email in "User support email"
- (Optional) Add your logo
- Under "Authorized Domains", add:
https://name-name-123.convex.site
- Add your email in "Developer contact information"
- Complete the setup by clicking "Save and Continue"
-
Credentials Setup:
- Click "Create Credentials" → "OAuth client ID"
- Select "Web application"
- Configure the following:
- Authorized JavaScript Origins:
http://localhost:3000
- Authorized Redirect URLs:
https://name-name-123.convex.site/api/auth/callback/google
- Authorized JavaScript Origins:
- Click "Create"
-
Configure Convex Environment:
- In your Convex project settings:
- Add
AUTH_GOOGLE_ID
environment variable with your Google Client ID - Add
AUTH_GOOGLE_SECRET
environment variable with your Google Client Secret
- Add
- In your Convex project settings:
-
Configure Stripe Secret Key:
- Create an account on Stripe Dashboard
- Navigate to Developers → API Keys
- Copy the Secret key
- Add to Convex Environment Variables as
STRIPE_API_KEY
-
Configure Publishable Key:
- Copy the Publishable key from Stripe dashboard
- Add to Convex Environment Variables as
STRIPE_KEY
-
Set up Webhooks:
- Run in your terminal:
npm run stripe:listen
- Copy the webhook signing secret (
whsec_81...
) - Add to Convex Environment Variables as
STRIPE_WEBHOOKS_SECRET
- Run in your terminal:
-
Enable Stripe Functions:
- Uncomment the functions in the
/convex
folder:payments
stripe
users
- Uncomment the functions in the
For more detailed information about how to use the tools we just installed, visit the official documentation.# devvault-kit