Skip to content

Instantly share code, notes, and snippets.

@lucasgrow
Created June 12, 2025 16:19
Show Gist options
  • Select an option

  • Save lucasgrow/3d448997a0dff5e8a7ccdb3c377e1a7e to your computer and use it in GitHub Desktop.

Select an option

Save lucasgrow/3d448997a0dff5e8a7ccdb3c377e1a7e to your computer and use it in GitHub Desktop.
“Boilerplate Next.js / Tailwind / Stripe / Mongo”

“Boilerplate Next.js / Tailwind / Stripe / Mongo”

app/ ├── layout.js # Main layout component ├── page.js # Home page ├── dashboard/ # Dashboard pages │ ├── layout.js # Dashboard layout │ └── page.js # Dashboard main page ├── api/ # API routes │ ├── auth/ # Authentication endpoints │ ├── lead/ # Lead management endpoints │ ├── stripe/ # Stripe payment endpoints │ └── webhook/ # Webhook handlers ├── blog/ # Blog pages ├── privacy-policy/ # Privacy policy page ├── tos/ # Terms of service page ├── error.js # Error handling component ├── not-found.js # 404 page component └── globals.css # Global CSS styles

components/ ├── LayoutClient.js # Client-side layout wrapper ├── Header.js # Main header component ├── Footer.js # Main footer component ├── Hero.js # Hero section component ├── Pricing.js # Pricing section component ├── ButtonAccount.js # Account button component ├── ButtonCheckout.js # Checkout button component ├── ButtonSignin.js # Sign in button component ├── ButtonSupport.js # Support button component ├── ButtonLead.js # Lead generation button ├── ButtonPopover.js # Popover button component ├── ButtonGradient.js # Gradient style button ├── Modal.js # Modal dialog component ├── Tabs.js # Tabs navigation component ├── FeaturesGrid.js # Features grid display ├── FeaturesAccordion.js # Features accordion component ├── FeaturesListicle.js # Features list component ├── Testimonials1.js # Testimonials style 1 ├── Testimonials3.js # Testimonials style 3 ├── Testimonials11.js # Testimonials style 11 ├── TestimonialsSmall.js # Small testimonial component ├── TestimonialsAvatars.js # Testimonials with avatars ├── TestimonialRating.js # Testimonial with rating ├── WithWithout.js # Comparison component ├── CTA.js # Call to action component ├── Problem.js # Problem statement component ├── FAQ.js # FAQ component └── BetterIcon.js # Enhanced icon component

libs/ ├── mongo.js # MongoDB connection ├── mongoose.js # Mongoose ORM setup ├── next-auth.js # NextAuth authentication setup ├── api.js # API utilities ├── resend.js # Email sending functionality ├── stripe.js # Stripe integration ├── seo.js # SEO utilities └── gpt.js # OpenAI GPT integration

models/ ├── User.js # User data model ├── Lead.js # Lead data model └── plugins/ # Mongoose plugins

public/ ├── blog/ # Blog static assets ├── robots.txt # Robots crawl instructions ├── sitemap.xml # Site map index └── sitemap-0.xml # Generated sitemap

.gitignore # Git ignore file package.json # NPM package definition package-lock.json # NPM package lock next.config.js # Next.js configuration tailwind.config.js # Tailwind CSS configuration postcss.config.js # PostCSS configuration jsconfig.json # JavaScript configuration .eslintrc.json # ESLint configuration next-sitemap.config.js # Sitemap generation config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment