Setup & Installation
Get your Founderflow Boilerplate up and running in minutes with our comprehensive setup guide.
Prerequisites
Before you begin, make sure you have the following installed and configured:
- Node.js 18+ - Latest LTS version recommended
- MongoDB database - Local or cloud instance
- Clerk account - For authentication
- Stripe account OR Lemon Squeezy account - For payments
1. Clone Repository
Terminal
git clone <your-repo-url>
cd NextshipBoilerplate
2. Install Dependencies
Terminal
npm install
3. Environment Variables
Create a .env
file in the root directory with the following variables:
.env
# Database
MONGO_URI=mongodb://localhost:27017/your-database
# Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_...
CLERK_SECRET_KEY=sk_test_...
CLERK_WEBHOOK_SIGNING_SECRET=whsec_...
# Payment Providers (Choose one or both)
# Stripe
STRIPE_SECRET_KEY=sk_test_...
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...
# Lemon Squeezy
LEMON_SQUEEZY_API_KEY=sk_test_...
LEMON_SQUEEZY_STORE_ID=your_store_id
LEMON_SQUEEZY_WEBHOOK_SECRET=your_webhook_secret
# Optional Services
RESEND_API_KEY=re_...
NEXT_PUBLIC_POSTHOG_KEY=phc_...
SANITY_PROJECT_ID=your_project_id
SANITY_DATASET=production
# Analytics
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-...
4. Run Development Server
Terminal
npm run dev
Visit http://localhost:3000
to see your application.
Next Steps
Now that you have the boilerplate running, check out these guides to customize it for your needs: