> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nearbase.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Get a managed PostgreSQL database running in minutes

## Get Started

Nearbase gives you a fully managed, auto-scaling PostgreSQL database in Asia — no ops, no cloud expertise required.

<Steps>
  <Step title="Sign Up">
    Go to [console.nearbase.dev](https://console.nearbase.dev) and create your
    account.
  </Step>

  <Step title="Add Payment">
    Add your payment method and top up your balance.
  </Step>

  <Step title="Create a Database">
    Pick a region, choose your instance size, and click create. Your PostgreSQL
    database will be ready in 2–5 minutes.
  </Step>

  <Step title="Connect">
    Grab your connection string from the console and connect with any PostgreSQL
    client or driver.
  </Step>
</Steps>

<Card title="Open Console" icon="arrow-up-right-from-square" href="https://console.nearbase.dev">
  Create your first database now at console.nearbase.dev
</Card>

## Available Regions

Nearbase is available in 10 regions. See [Regions](regions) for the full list.

## Connect to Your Database

Once your database is running, connect using any PostgreSQL client:

```bash theme={null}
psql "host=your-instance.nearbase.dev port=5432 dbname=postgres user=admin password=YourPassword sslmode=require"
```

Or in your application:

```javascript theme={null}
import pg from "pg";

const pool = new pg.Pool({
  connectionString:
    "postgresql://admin:YourPassword@your-instance.nearbase.dev:5432/postgres?sslmode=require",
});

const result = await pool.query("SELECT NOW()");
console.log(result.rows[0]);
```

Need help? Reach out at [team@m.nearbase.dev](mailto:team@m.nearbase.dev).
