Documentation
This guide walks you through setting up LaunchNext.dev and deploying to production.
Installation
After purchase you’ll get access to the full source code. Clone or download the repo, then run:
pnpm install
Environment
Copy .env.example to .env.local and set your MongoDB URI, JWT secret, and any optional keys (e.g. Stripe, email).
Project structure
The app uses the Next.js App Router. Key folders: app/ for routes and layouts, components/ for UI, lib/ for utilities and DB, models/ for Mongoose schemas.
Authentication
The template includes email/password auth with JWT in httpOnly cookies. You can extend it with OAuth (e.g. Google) via NextAuth or similar.
Database
MongoDB is used with Mongoose. Connection is handled in lib/db.ts with retries. Add your own models in models/.
Deployment
Deploy to Vercel, Railway, or any Node host. Set environment variables in your platform. For Vercel, connect your repo and add MONGODB_URI and JWT_SECRET.