How it works

Polsia apps are production-ready Node.js services — Express on top, PostgreSQL underneath — pre-wired and live from day one. Describe what you want, ship code, and we handle the database, migrations, deploys, and hosting.

1. Install

Add the two dependencies every Polsia app uses — express for the HTTP layer and pg for PostgreSQL.

$ npm install express pg

2. Configure

Polsia provisions a PostgreSQL database for you automatically and exposes it as DATABASE_URL. Set it in your environment before the server boots — it is required, and the process will refuse to start without it.

export DATABASE_URL="postgresql://user:pass@host:5432/dbname"

// server.js — your app reads it from the environment
const pool = new pg.Pool({
  connectionString: process.env.DATABASE_URL,
})

3. Run

From the project root, start the dev server. Polsia watches the entry point and hot-reloads on file changes.

$ npm run dev