Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🏬 relivator: next.js 15 react 19 ecommerce template ▲ better-auth polar shadcn/ui tailwind drizzle orm typescript ts radix, postgres neon, app router saas commerce ecommerce shop pricing payments dark mode full stack free ⭐ more stars 👉 more features

License

NotificationsYou must be signed in to change notification settings

blefnk/relivator-nextjs-template

Repository files navigation

demosponsordiscordgithubdocs

relivator is a robust ecommerce template built with next.js and other modern technologies. it's designed for developers who want a fast, modern, and scalable foundation without reinventing the backend.

stack

  1. 🧱core:nextjs 15.3 +react 19.1 +ts 5.8
  2. 🎨ui:tailwind 4.1 +shadcn/ui
  3. 🔒auth:better-auth
  4. 🎬anims:animejs
  5. 📦storage:uploadthing
  6. 📊analytics:vercel
  7. 🧬db:drizzle-orm (pg) +neon/(🤔🔜)supabase
  8. 🏗️dx:eslint +biome +knip
  9. 📝forms:react-form(🔜 w.i.p) +arktype
  10. 📅tables:react-table
  11. 🌐i18n:next-intl(🔜 w.i.p)
  12. 💌email:resend(🔜 w.i.p)
  13. 💳payments:polar
  14. 🔑api:orpc(🔜 w.i.p)

these features define the main reliverse stack. for an alternative setup—featuring clerk, stripe, trpc, and more—check outversator.

quick start

  1. installgit,node.js,bun.

  2. run:

    git clone https://github.com/blefnk/relivator.gitcd relivatorbun installcopy .env.example .env
  3. fill in the required environment variables in the.env file.

  4. optionally, edit thesrc/app.ts file to make the app yours.

  5. run:

    bun db:push# populate db with schemabun dev# start development serverbun run build# build production version
  6. edit something in the code manually or ask ai to help you.

  7. done. seriously. you're building now.

commands

commanddescription
bun devstart local development
bun buildcreate a production build
bun latestinstall latest deps
bun uiadd shadcn components
bun db:pushapply db schema changes
bun db:authupdate auth-related tables
bun db:studioopen visual db editor

polar integration

relivator now integrates withpolar for payment processing and subscription management.

features

  • checkout flow for subscription purchases
  • customer portal for managing subscriptions
  • webhook handling for subscription events
  • automatic customer creation on signup
  • integration with better-auth for seamless authentication

setup instructions

  1. create an account onpolar
  2. create an organization and get an organization access token
  3. configure your environment variables in.env:
    POLAR_ACCESS_TOKEN="your_access_token"POLAR_WEBHOOK_SECRET="your_webhook_secret"POLAR_ENVIRONMENT="production" # or "sandbox" for testing
  4. create products in the polar dashboard
  5. update the product IDs insrc/lib/auth.ts to match your polar products:
    checkout:{enabled:true,products:[{productId:"your-product-id",// Replace with actual product ID from Polar Dashboardslug:"pro"// Custom slug for easy reference in Checkout URL}]}
  6. runbun db:push to create the necessary database tables
  7. start the application withbun dev

verification

to verify that the integration is working:

  1. sign up for an account
  2. navigate to the dashboard billing page (/dashboard/billing)
  3. try subscribing to a plan
  4. check that your subscription appears in the billing dashboard
  5. test the customer portal by clicking "manage subscription"

api routes

the following api routes are available for payment processing:

  • /api/payments/customer-state - get the current customer state
  • /api/payments/subscriptions - get user subscriptions

notes

  • relivator 1.4.0+ is ai-ready — optimized for ai-powered ides like cursor, making onboarding effortless even for beginners.
  • version 1.3.0 evolved into versator, featuringclerk authentication andstripe payments. exploreversator demo,repo, ordocs.

stand with ukraine

  • 💙 help fund drones, medkits, and victory.
  • 💛 every dollar helps stoprussia's war crimes and saves lives.
  • ‼️ please,donate now, it matters.

stand with reliverse

every bit of support helps keep the dream alive: dev tools that don't suck.

license

mit © 2025nazar kornienko (blefnk),reliverse

About

🏬 relivator: next.js 15 react 19 ecommerce template ▲ better-auth polar shadcn/ui tailwind drizzle orm typescript ts radix, postgres neon, app router saas commerce ecommerce shop pricing payments dark mode full stack free ⭐ more stars 👉 more features

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

[8]ページ先頭

©2009-2025 Movatter.jp