What this covers
This page is for the RLink application (dazedmind/rlink), not this Mintlify documentation site. Use it when you want a minimal path from clone to running dashboard.1. Clone and install
package-lock.json).
2. Configure environment
Create a.env file in the project root. You need at minimum a Neon DATABASE_URL, NEXT_PUBLIC_APP_URL, BETTER_AUTH_SECRET (32+ characters), and email keys if you exercise mail flows. See Getting started for the full variable table and explanations.
3. Apply the database schema
npx drizzle-kit push is faster—never use push against production.
4. Run the app
/home/* and relies on ProtectedRoute plus session cookies from Better Auth.
Common pitfalls
NEXT_PUBLIC_APP_URLmismatch — Must match the origin you use in the browser (includinghttpvshttpsand no stray trailing slash). Wrong values break auth cookies and redirects.- Missing auth tables — If login fails with database errors, confirm migrations ran and
db/auth-schema.tstables exist in Neon. - Resend not configured — Password reset and campaign email need
RESEND_API_KEY/RESEND_FROM; without them, mail-dependent flows fail at runtime.
Next steps
Introduction
Product overview and stack
Getting started (full)
Prerequisites, scripts, and verification
Architecture
How CMS, CRM, and IAM fit together
Authentication
Better Auth, sessions, and 2FA
