Start Here
Hello Maker, Let's Get Started With OneMix!
Follow this tutorial to run the OneMix boilerplate locally in minutes.
Step 1: Get The Repo
git clone <https://github.com/SaaS-King/onemix.git>Rename
.env.exampleto.env
Step 2: Setup Datbase
Create a project on Supabase. You get two free projects.
You can now populate the following values in the .env file:
SUPABASE_URLandSUPABASE_ANON_PUBLICfound at https://supabase.com/dashboard/project/{PROJECT}

SUPABASE_SERVICE_ROLEfound at https://supabase.com/dashboard/project/{PROJECT}/settings/api

DATABASE_URLfound here https://supabase.com/dashboard/project/{PROJECT}/settings/database

Step 3: Setup Payment
Install Stripe CLI
Create a Stripe account. You can now populate
STRIPE_SECRET_KEYin the .env file. Find it at https://dashboard.stripe.com/test/apikeys

With Stripe CLI installed, run this command:
stripe listen --forward-to localhost:3000/api/webhookto get theSTRIPE_ENDPOINT_SECRET
Step 4: Setup Email
Create a Resend account.
Create an API key here: https://resend.com/api-keys and copy it for the
RESEND_KEY_APIvalue.Use your personal email for
receiverEmailvariable inapp/email/service.server.ts

Step 5: Run Locally
npm i(You can use yarn or pnpm if you want to)npm run setupto seed the DB and Stripe. This script creates 3 dummy subscription products and the respective pricing and tiers in Stripe. You can change them later.npm run dev
Voila! You have OneMix running in your local system!
Last updated