How to set up your SaaS with Neon

Jonathan Wilke

Jonathan Wilke

4/25/2024

#Guide#Database
How to set up your SaaS with Neon

In this guide we will show you how to easily set up your supastarter SaaS with Neon as your database.

Before we start, make sure you have a Neon account. If you don't have one yet, you can create one for free at neon.tech.

1. Create a new database

After creating an account, you should be promted to create your first project. Enter a name for the project and one for the database. Select the region you want your database to be hosted in and click Create project.

Create a new project

2. Get connection string

After success project creation, you will be redirect to the project dashboard and a dialog will show up which shows you the connection string. Copy it by clicking the copy button in the bottom right corner.

Connection string

3. Create a new supastarter project

As described in the supastarter documentation, you can create a new supastarter project by running the following command:

npx supastarter new

In the CLI wizard, you will be asked for the database type and the connection string. Select PostgreSQL as the datbase type and paste the connection string you copied in step 2.

5. Run development server

Now you should be able to start the development server by running the following command in the project root:

pnpm dev

That's all it takes to set up supastarter with Neon! If you have questions, feedback or feature requests, feel free to reach out to us on Twitter.

Ship your SaaS in months days

Save time and focus on your business with supastarter, the scalable and production-ready starter kit for your SaaS.

Get started

Stay up to date

Sign up for our newsletter and we will keep you updated on everything going on with supastarter.