---
title: "Deploy Nestled.js Starter Kit"
description: "Production infrastructure for Nestled.js"
category: "Starters"
url: https://railway.com/deploy/nestledjs-setup-template
---

# Deploy Nestled.js Starter Kit

Production infrastructure for Nestled.js

**[Deploy Nestled.js Starter Kit on Railway](https://railway.com/template/nestledjs-setup-template)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/nestledjs-setup-template/manifest.json

- **Creator:** Pirate & Fox
- **Category:** Starters
- **Total deploys:** 8

## Template content

### Postgres 18 https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### Redis 8.2 https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### api https://raw.githubusercontent.com/nestledjs/nestledjs.com/HEAD/src/app/icon-512.png

- **Source:** nestledjs/nestled-template
- **Start command:** `npm run start:api`
- **Health check:** /api/uptime
- **Public domain:** Yes

### web https://raw.githubusercontent.com/nestledjs/nestledjs.com/HEAD/src/app/icon-512.png

- **Source:** nestledjs/nestled-template
- **Start command:** `npm run start:web`
- **Health check:** /
- **Public domain:** Yes

## Documentation

# Deploy and Host Nestled.js on Railway

Nestled.js is a production-ready NestJS + React starter template with authentication, organizations/teams, RBAC, Stripe billing, an admin panel, and a fully generated GraphQL SDK. It gives you a clean foundation so you only build your custom features.

## About Hosting Nestled.j

This template deploys four services: a PostgreSQL 18 database, Redis 8, a NestJS GraphQL API, and a React web app. Database migrations run automatically before each API deploy, and the Prisma client and both apps are built for you.

You'll need to set environment variables for your URLs, cookie domain and email, and optionally for OAuth providers (Google, GitHub), Stripe billing, and file storage (ImageKit, S3, Cloudinary). If your API and web app are on different subdomains (for example api.myapp.com and app.myapp.com), set `API_COOKIE_DOMAIN` to `.myapp.com` on both the api and web services, so signing out clears the session everywhere.

The first user to register automatically becomes the super admin.

## Common Use Cases

- SaaS applications requiring multi-tenant organizations, team invitations, and role-based access control
- Subscription-based products with Stripe billing, plan management, and webhook handling
- Internal tools and admin dashboards with audit logging, user management, and generated CRUD APIs

## Dependencies for Nestled.js Hosting

- PostgreSQL 18 and Redis 8 (provisioned automatically by this template)
- Node.js 22 with pnpm (pinned in the repository; Railway picks it up automatically)

### Deployment Dependencies

- [Nestled.js Documentation](https://nestledjs.com) - full setup guide, schema configuration, and feature documentation
- [Stripe Dashboard](https://dashboard.stripe.com) - for billing keys, webhook secrets, and product configuration
- [Google Cloud Console](https://console.cloud.google.com/apis/credentials) - for Google OAuth (optional)
- [GitHub Developer Settings](https://github.com/settings/developers) - for GitHub OAuth (optional)
- An email provider (SMTP, SendGrid or Mailgun) for transactional emails

## Why Deploy Nestled.js 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 Nestled.js 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

- [Openfront Gym](https://railway.com/deploy/openfront-gym) — Opensource Mindbody alternative based on Next.js and Keystone.js
- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [Next.js + Prisma + PostgreSQL Starter](https://railway.com/deploy/nextjs-prisma-postgres) — Deploy a Next.js app with Prisma ORM and PostgreSQL in one click.

Open this page in a browser: https://railway.com/deploy/nestledjs-setup-template
