TutorialGetting Started

Getting Started with NextShip

Learn how to set up and deploy your first SaaS application using NextShip, the modern Next.js starter template.

By NextShip Team

Welcome to NextShip! This guide will walk you through setting up your first SaaS application.

Prerequisites

Before you begin, make sure you have:

  • Node.js 18+ installed
  • pnpm package manager
  • A PostgreSQL database (we recommend Neon)

Quick Start

  1. Clone the repository and install dependencies:
git clone https://github.com/your-repo/nextship.git
cd nextship
pnpm install
  1. Set up your environment variables:
cp .env.example .env.local
  1. Configure your database connection in .env.local:
DATABASE_URL=postgresql://user:pass@host/db?sslmode=require
  1. Push the database schema:
pnpm db:push
  1. Start the development server:
pnpm dev

What's Included

NextShip comes with everything you need to build a modern SaaS:

  • Authentication - Email/password, OAuth, and magic links with Better Auth
  • Database - PostgreSQL with Drizzle ORM
  • Payments - Stripe integration for subscriptions
  • Email - Transactional emails with Resend
  • UI Components - Beautiful components with shadcn/ui

Next Steps

Happy shipping!