Skip to main content

Neon Quickstart: Connecting MTVL

Follow these steps to provision a Neon database and connect your MTVL backend in under 5 minutes.

Step 1: Create a Neon Project

Option A: Via Neon Web Console

  1. Navigate to console.neon.tech and sign in.
  2. Click Create Project.
  3. Name your project (e.g. mtvl-production).
  4. Select your preferred Cloud Region (e.g., AWS us-east-2 or AWS eu-central-1) and PostgreSQL version (16 or 17).
  5. Click Create Project.

Option B: Via Neon CLI


Step 2: Obtain Connection String (DSN)

In your Neon Dashboard:
  1. Navigate to the Connection Details widget.
  2. Select your branch (e.g. main) and database (e.g. neondb).
  3. Toggle Connection Pooling ON.
  4. Copy the connection URI:
:::important SSL Requirement Neon requires SSL connections. Ensure sslmode=require is appended to your DSN connection string. :::

Step 3: Configure MTVL Environment Variables

Set the following environment variables when running MTVL:

Step 4: Run the Backend & Verify Migrations

Start the backend:
The output will confirm successful connection and automatic Goose migration execution: