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.
Add the two dependencies every Polsia app uses — express for the HTTP layer and pg for PostgreSQL.
$ npm install express pg
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,
})
From the project root, start the dev server. Polsia watches the entry point and hot-reloads on file changes.
$ npm run dev