OneMix Documentation
  • Start Here
  • Features
    • Analytics
    • Authentication
    • Database
    • Emails
    • Error Handling
    • Payments
    • SEO
  • Components
    • Header
    • Hero Section
    • Image Gallery
    • Marketing Section
    • Testimonials
    • Pricing
    • FAQs
    • Contact Form
  • Miscellaneous
    • Privacy Policy
    • Terms of Service
  • Deployment
Powered by GitBook
On this page
  • Hello Maker, Let's Get Started With OneMix!
  • Step 1: Get The Repo
  • Step 2: Setup Datbase
  • Step 3: Setup Payment
  • Step 4: Setup Email
  • Step 5: Run Locally

Start Here

NextAnalytics

Last updated 10 months ago

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.example to .env

Step 2: Setup Datbase

  • Create a project on . You get two free projects.

  • You can now populate the following values in the .env file:

  • SUPABASE_URL and SUPABASE_ANON_PUBLIC found at

Step 3: Setup Payment

  • With Stripe CLI installed, run this command: stripe listen --forward-to localhost:3000/api/webhook to get the STRIPE_ENDPOINT_SECRET

Step 4: Setup Email

  • Use your personal email for receiverEmail variable in app/email/service.server.ts

Step 5: Run Locally

  • npm i (You can use yarn or pnpm if you want to)

  • npm run setup to 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!

SUPABASE_SERVICE_ROLE found at

DATABASE_URL found here

Install

Create a account. You can now populate STRIPE_SECRET_KEY in the .env file. Find it at

Create a account.

Create an API key here: and copy it for the RESEND_KEY_API value.

https://supabase.com/dashboard/project/{PROJECT}/settings/api
https://supabase.com/dashboard/project/{PROJECT}/settings/database
Stripe CLI
Stripe
https://dashboard.stripe.com/test/apikeys
Resend
https://resend.com/api-keys
Supabase
https://supabase.com/dashboard/project/{PROJECT}