Back to blogs

Build a SaaS Foundation with PaceUI Starter

Start a SaaS project with PaceUI Starter, then configure its database, authentication, and payment provider using the existing setup guides.

Starter

PaceUI

PaceUI Starter gives a project a starting structure for common SaaS features, including authentication, a database, email, payments, and UI. This guide shows how to approach that foundation in stages so you can configure the modules your product needs and understand which setup guide to follow next.

PaceUI Starter documentation covers both Next.js and TanStack Start. Check the current Starter product page and the docs for the version you have before following commands or provider-specific steps.

1. Run the project locally

Start with the Starter getting started guide. It lists Bun as the prerequisite and walks through extracting the project, installing dependencies, setting environment variables, syncing the database schema, and running the development server.

The documented local workflow includes:

Terminal
bun install
cp .env.example .env
bun db:push
bun dev

Add the database connection and other secrets to your local .env file as described in the setup docs. Keep real secrets out of source control.

2. Choose an authentication flow

The Starter auth guide documents email and password sign-in, sessions, protected routes, and role-based permissions. If your product needs social sign-in, use the separate OAuth guide for provider credentials and callback URLs.

Review the basic authentication documentation to understand the project's middleware and permission helpers. Decide which routes require an authenticated session and which actions need a permission check before you connect product data.

3. Configure the database

The Starter uses PostgreSQL with Drizzle ORM. The database guide explains where schemas live, how the shared database module is organized, and how to sync schema changes during development. Keep new tables close to the feature that owns them, following the documented project structure.

Before adding product features, make sure the local environment points to the intended database and that you understand which command is appropriate for development versus production migrations.

4. Select a payment provider

Starter documents payment flows for Polar and Creem. Choose one provider, configure its environment variables and webhook secret, create products in that provider's dashboard, and connect the resulting product IDs to the Starter's plan configuration.

Payment providers need their own account setup and webhook configuration. Follow the provider-specific guide and verify the webhook URL and secret in the provider dashboard before relying on payment events.

5. Add email when your product needs it

For email, follow the Resend guide to set an API key, verify a sending domain, and configure the sender and template names. Configure email before relying on verification or password reset messages in a production environment.

6. Build the product-specific part

Once the foundation is running, add the workflow that makes your product distinct. Use the Starter as a codebase to inspect and adapt; confirm each integration in your own environment and remove modules you do not need, following the Starter's modular setup.

Useful next references:

Provider credentials, environment variables, and deployment requirements are specific to your application. Use the docs for your current Starter version and hosting setup when moving from local development to production.