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