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

# Deploy Nestled.js Setup Template

Production infrastructure for Nestled.js

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

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

## Template content

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

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

### api

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

### web

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

### Redis https://devicons.railway.app/i/redis.svg

- **Image:** railwayapp/redis:7.2.5

## Documentation

 # Deploy and Host Nestled.js Setup Template on Railway                                                                                 
                                               
  Nestled.js is a production-ready NestJS + React starter template with authentication, organizations/teams, RBAC, Stripe billing, admin 
  panel, and a fully generated GraphQL SDK. It provides a clean foundation so you only build your custom features.                       
                                                                                                                                         
  ## About Hosting Nestled.js Setup Template                      

  Deploying Nestled.js requires a PostgreSQL database, a NestJS GraphQL API server, and a React frontend. The template handles database
  migrations, Prisma client generation, and builds both apps automatically. You'll need to configure environment variables for JWT
  secrets, email (SMTP), and optionally OAuth providers (Google, GitHub), Stripe billing, and file storage (ImageKit, S3, Cloudinary).
  The first user to register automatically becomes super admin. PgBouncer connection pooling is included for production database
  performance.

  ## 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 Setup Template Hosting

  - PostgreSQL (provisioned automatically by this template)
  - Node.js 20+ with pnpm

  ### 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 SMTP provider (SendGrid, AWS SES, Mailgun, etc.) for transactional emails

  ## Why Deploy Nestled.js Setup Template 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 Setup Template 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/nestledjs-setup-template
