Skip to content

Everything you need to build a startup from the CTO of a YC-backed startup

License

Notifications You must be signed in to change notification settings

markgargan/startup-boilerplate

 
 

Repository files navigation

Production Boilerplate for Startups

Join Discord Community

See Documentation

Getting Started

To get started, choose which frontend you need and go from there:

  • Choose Flutter if you plan to build or expand into cross-platform apps (e.g. Duolingo, Fitbit, Spotify, Tinder, etc.)
  • Choose NextJS if SEO, page load speeds, and web-specific libraries are integral to your app (e.g. Shopify, Medium, Wix, etc.)

Additionally, it's also possible to start with one-platform and move onto the next one depending on your needs. For example, start with Next.JS and then move to Flutter when a mobile app is needed. Both are configured to work straight out of the box.

What's Included:

Mobile / Desktop / Web App (Flutter)

Landing Page / Web App (NextJS)

  • App Router
  • Typescript
  • Payments with Stripe
  • Authentication with Supabase
  • 🚧 Landing Page Template 🚧

Backend (Supabase)

  • Authentication
  • Email + PW
  • SSO (Google, Github, etc.)
  • Fully configured for local development from day one
  • 🚧 backend tests 🚧

Analytics (Posthog)

  • Unified analytics across frontend and backend based on user_id
    • Frontend analytics comes pre-installed for iOS, Android, Web, and MacOS
    • Backend analytics installed and linked to frontend analytics
  • Basic events captured:
    • user signs in
    • user signs up
    • user deletes account
    • user starts checkout
    • user opens billing portal
    • user completes checkout

Payments (Stripe)

  • Stripe fully setup and works with one-time payments and subscriptions
    • stripe table to store stripe_customer_id and current active_products
    • Stripe webhook to sync user subscriptions from stripe to supabase
    • Deno function to retrieve the billing portal url or a checkout session url which works with the payments_screen

Release (Github Actions)

  • Script to bumpversion.sh following semantic versioning
  • Deploys a web preview on Netlify for every PR
  • Publishing pipeline to publish to Netlify and to publish supabase functions
  • 🚧 Automated Mobile Publishing 🚧

Emails (Postmark)

  • Send transactional emails
  • DNS setup to avoid spam folder (DKIM, DMARC, SPF in subdomain)
  • Simplify email updates by using postmark templates

🚧 Blog / Docs (Nextra) 🚧

Additional Support

Support me by purchasing premium support from yours truly :)

Code + Docs ($0) Premium Support ($49) I'll Build Your MVP ($5000~)
✓ Code ✓ 30 Min Setup Call ✓ Completed MVP
✓ Documentation ✓ Premium Discord Support ✓ Technical Co-founder
✓ Discord Community ✓ Weekly Office Hours
✓ Life-time Updates ✓ Support Matt
View Code Buy Now Book a Call

About

Everything you need to build a startup from the CTO of a YC-backed startup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 51.3%
  • Dart 14.1%
  • C++ 12.6%
  • CMake 10.3%
  • PLpgSQL 3.9%
  • CSS 1.7%
  • Other 6.1%