S
Solo Kit
DocumentationComponentsPricingChangelogRoadmapFAQContact
LoginGet Started
DocumentationComponentsPricing
LoginGet Started
Welcome to Solo Kit DocumentationIntroductionTech StackRoadmapFAQGetting Started
Getting Started

Quick Start

Quick Start Guide

Get Solo Kit up and running in 5 minutes. This guide gets you from zero to a working SaaS application with database, authentication, and more.

โšก Prerequisites

Before starting, ensure you have:

  • Node.js 18+ (download here)
  • pnpm - npm install -g pnpm
  • Git - For version control
  • Code editor - VS Code, WebStorm, or your preferred editor

๐Ÿš€ 1. Clone and Install

# Clone the repository
git clone https://github.com/your-username/solo-kit.git
cd solo-kit

# Install dependencies
pnpm install

This installs all dependencies for web, mobile, and shared packages in one command.

๐Ÿ—„๏ธ 2. Set Up Database

Get a free PostgreSQL database from one of these providers:

Option A: Neon (Recommended)

  1. Go to neon.tech and create a free account
  2. Create a new project
  3. Copy the connection string

Option B: Supabase

  1. Go to supabase.com and create a free account
  2. Create a new project
  3. Go to Settings > Database and copy the connection string

Option C: Railway

  1. Go to railway.app and create a free account
  2. Create a new PostgreSQL database
  3. Copy the connection string

โš™๏ธ 3. Configure Environment

Create your environment file:

# Copy the example environment file
cp .env.example .env.local

Add your database URL to .env.local:

# Required - Your PostgreSQL database URL
DATABASE_URL="postgresql://username:password@host:port/database"

# Optional - For admin features (use your email)
ADMIN_EMAIL="your-email@example.com"

๐Ÿ—๏ธ 4. Initialize Database

Push the database schema to your PostgreSQL database:

pnpm db:push

This creates all necessary tables in your database.

๐ŸŽ‰ 5. Start Development

pnpm dev

Your app is now running at:

  • Web App: http://localhost:3000
  • Debug Panel: http://localhost:3000/debug

๐ŸŽฏ What You Get Out of the Box

Visit your running application and you'll see:

๐Ÿ  Landing Page

  • Professional marketing site
  • Pricing tables
  • Feature highlights
  • Responsive design
  • Dark mode support

๐Ÿ” Authentication

  • Sign up/Login pages ready to use
  • OAuth providers (GitHub, Google) - configure in auth settings
  • Email/password authentication
  • Protected routes and dashboard

๐Ÿ“Š Dashboard

  • User dashboard with profile management
  • Settings page for user preferences
  • Admin panel (if ADMIN_EMAIL is set)

๐Ÿ› ๏ธ Debug Panel

Visit /debug to see your configuration status:

  • โœ… Database connection
  • โœ… Authentication setup
  • โš ๏ธ Email provider (console mode by default)
  • โš ๏ธ Payment providers (mock mode by default)

โšก Next Steps (5 more minutes)

Enable Email (Optional)

Get a Resend account (free tier):

# Add to .env.local
EMAIL_PROVIDER="resend"
RESEND_API_KEY="your-resend-api-key"

Enable Payments (Optional)

Get a Stripe account (test mode):

# Add to .env.local
STRIPE_SECRET_KEY="sk_test_..."
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="pk_test_..."

Set Up Admin Access

To access admin features at /admin:

# 1. Add your email to .env.local
ADMIN_EMAIL="your-email@example.com"

# 2. Sign in with that email via OAuth
# 3. Run the admin setup script
pnpm tsx scripts/fix-admin.ts

๐Ÿ“ฑ Start Mobile App (Optional)

In a new terminal:

pnpm dev:mobile

Scan the QR code with:

  • iOS: Camera app or Expo Go app
  • Android: Expo Go app

The mobile app shares components and utilities with the web app.

๐Ÿงช Explore Features

Now that you're up and running, explore these features:

Authentication Flows

  • Sign up with email/password
  • OAuth sign-in (configure providers in auth settings)
  • Password reset flow
  • Email verification

Dashboard Features

  • User profile management
  • Settings and preferences
  • Data visualization
  • CRUD operations

Developer Features

  • Hot module reloading
  • TypeScript error checking
  • Database schema management
  • Email template preview

๐ŸŽ“ Learn More

Ready to dive deeper? Continue with:

  1. Project Structure - Understand the codebase
  2. Development Guide - Development workflow
  3. Database Guide - Master the database layer
  4. Authentication Guide - Secure authentication

๐Ÿ†˜ Need Help?

If something isn't working:

  1. Check the debug panel at http://localhost:3000/debug
  2. Verify your DATABASE_URL is correct
  3. Check the logs in your terminal for error messages
  4. See Troubleshooting for common issues

๐Ÿ”ฅ Pro Tips

Speed Up Development

# Use changed-files-only commands for faster development
pnpm lint:changed          # Lint only changed files
pnpm type-check:changed     # Type-check only changed files  
pnpm test:changed           # Test only changed files

Database Management

pnpm db:studio              # Visual database browser
pnpm db:seed                # Add sample data
pnpm db:reset               # Reset database (careful!)

Code Quality

pnpm lint                   # Check code quality
pnpm type-check             # TypeScript validation
pnpm test                   # Run test suite

๐ŸŽ‰ Congratulations!

You now have a production-ready SaaS application running with:

  • โœ… PostgreSQL database with type-safe queries
  • โœ… Authentication system with session management
  • โœ… Responsive web app with dark mode
  • โœ… Mobile app with shared code
  • โœ… Development tools and hot reloading
  • โœ… Type safety throughout the stack

You're ready to start building your unique features on top of this solid foundation.

Next: Dive into the Project Structure to understand how everything fits together.

On this page

Quick Start Guideโšก Prerequisites๐Ÿš€ 1. Clone and Install๐Ÿ—„๏ธ 2. Set Up DatabaseOption A: Neon (Recommended)Option B: SupabaseOption C: Railwayโš™๏ธ 3. Configure Environment๐Ÿ—๏ธ 4. Initialize Database๐ŸŽ‰ 5. Start Development๐ŸŽฏ What You Get Out of the Box๐Ÿ  Landing Page๐Ÿ” Authentication๐Ÿ“Š Dashboard๐Ÿ› ๏ธ Debug Panelโšก Next Steps (5 more minutes)Enable Email (Optional)Enable Payments (Optional)Set Up Admin Access๐Ÿ“ฑ Start Mobile App (Optional)๐Ÿงช Explore FeaturesAuthentication FlowsDashboard FeaturesDeveloper Features๐ŸŽ“ Learn More๐Ÿ†˜ Need Help?๐Ÿ”ฅ Pro TipsSpeed Up DevelopmentDatabase ManagementCode Quality๐ŸŽ‰ Congratulations!