---
title: "Deploy Prisma Postgres Starter"
description: "Deploy and Host Prisma Postgres with Railway"
category: "Starters"
url: https://railway.com/deploy/prisma-postgres
---

# Deploy Prisma Postgres Starter

Deploy and Host Prisma Postgres with Railway

**[Deploy Prisma Postgres Starter on Railway](https://railway.com/template/prisma-postgres)**

- **Creator:** Prisma's Projects
- **Category:** Starters
- **Total deploys:** 46
- **Verified:** Yes

## Template content

### Prisma Postgres https://i.postimg.cc/9M2xLv0K/Logo-White-128x128.png

- **Source:** prisma/official-prisma-railway

## Documentation

# Deploy and Host the Prisma Postgres Template

This template provides a production-ready starter project with [Next.js](https://nextjs.org/), [Prisma ORM](https://www.prisma.io/), and a fully managed [Prisma Postgres](https://www.prisma.io/postgres) database. It's ideal for building modern full-stack applications with a type-safe backend and seamless database integration. Deploy instantly and start coding without setup overhead.

## About Hosting Prisma Postgres on Railway

When deployed on Railway, this template automatically provisions and configures a Prisma Postgres database, applies migrations, and seeds initial data. Prisma ORM is pre-integrated with a schema and client ready to use in your Next.js project, giving you type-safe database access.

## Common Use Cases

- Full-stack applications with a relational database  
- SaaS products requiring a scalable database layer  
- API backends with type-safe queries and migrations  
- Prototyping and experimenting with Next.js + Prisma  

## Dependencies for Prisma Postgres Hosting


The Railway template comes with all required dependencies pre-configured:

- [Next.js](https://nextjs.org/) with TypeScript  
- [Prisma ORM](https://www.prisma.io/) for database access and migrations  

### Deployment Dependencies

- [Railway Platform](https://railway.com/)  

### Database Claiming

Each deployment provisions a fresh Prisma Postgres database. To keep a database across deployments, you need to **claim it**:

1. Open the claim URL (provided in `README.md`).  
2. Follow the prompts to link the database to your [Prisma Data Platform](https://console.prisma.io/) account. 
3. On the Prisma Data Platform, open the database you just claimed and hit **Connect**.
4. Generate a database connection string by hitting the **Generate Database Credentials** button
3. Copy the generated `DATABASE_URL` into:
   - Your local `.env` file  
   - Your Railway Service variables section  

Once claimed, you can remove the `scripts/` folder (including `create-db.mjs`) and delete the `"postinstall"` and `"setup"` entries from `package.json`.

#### If you created a new database
Initialize it with Prisma:

```bash
# Push the schema
npx prisma db push

# Generate the Prisma client
npx prisma generate

# (Optional) Seed the database
npx prisma db seed
```

## Why Deploy Prisma Postgres on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Prisma Postgres on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

## Similar templates

- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway
- [Appsmith](https://railway.com/deploy/appsmith-1) — Low-code platform for internal tools, dashboards, and admin panels.

Open this page in a browser: https://railway.com/deploy/prisma-postgres
