From 18de157f1e0bf4c33417d6a521cae84437538b70 Mon Sep 17 00:00:00 2001 From: Ankur Datta <64993082+ankur-arch@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:35:23 +0600 Subject: [PATCH] Update content/400-pulse/250-database-setup/300-railway.mdx Co-authored-by: Nikolas --- content/400-pulse/250-database-setup/300-railway.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/400-pulse/250-database-setup/300-railway.mdx b/content/400-pulse/250-database-setup/300-railway.mdx index f8b2afbd92..e939e761dc 100644 --- a/content/400-pulse/250-database-setup/300-railway.mdx +++ b/content/400-pulse/250-database-setup/300-railway.mdx @@ -46,6 +46,13 @@ The template consists of two [services](https://docs.railway.app/reference/servi ## Setup with template: "Prisma Pulse DB & App" +This section provides step-by-step instructions for setting up a Pulse starter project with a Pulse-ready PostgreSQL database using the Railway template called: [Prisma Pulse DB & App](https://railway.app/template/pulse-starter). + +The template consists of three [services](https://docs.railway.app/reference/services): +- **Pulse-Starter**: A Typescript app with a basic setup for using Prisma Pulse. You can find the repo for it [on GitHub](https://github.com/prisma/pulse-starter/tree/main). +- **Postgres**: A PostgreSQL database that you'll be able to use with Prisma Pulse after going through the setup instructions. +- **restart-and-delete-me**: This service contains a [script](https://github.com/prisma/pulse-railway-pg-config/blob/main/config-db.ts) that's executed once and configures the PostgreSQL database to make it usable with Prisma Pulse. Once the script has been executed, the instructions will tell you to delete this service since it won't be needed any more. + 1. Deploy the [template](https://railway.app/template/pulse-starter) on Railway. 2. To set up the database and make it Pulse-ready, complete the steps outlined in the [previous section](#setup-with-template-prisma-pulse-db-only), starting from **2.**, then follow the instructions below. 2. Click on the **pulse-starter** service.