
Deploy Nestled.js Setup Template
Production infrastructure for Nestled.js
PgBouncer
Just deployed
Just deployed
/var/lib/postgresql/data
Just deployed
Just deployed
Just deployed
/bitnami
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 — full setup guide, schema configuration, and feature documentation
- Stripe Dashboard — for billing keys, webhook secrets, and product configuration
- Google Cloud Console — for Google OAuth (optional)
- GitHub Developer Settings — 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.
Template Content
PgBouncer
railwayapp/pgbouncer:latestAPP_URL
https://api.myapp.com | The public URL where your API is hosted. Railway provides this after deployment.
APP_NAME
Your application's display name. Shown in emails, 2FA authenticator apps, and browser titles.
SITE_URL
https://myapp.com | The public URL of your frontend application. Used for generating links in emails and redirects.
APP_EMAIL
hello@myapp.com | The "From" address for all outgoing emails. This is what users see as the sender.
ALLOWED_ORIGINS
CORS allowed origins. Your frontend URL(s). Comma-separate multiple origins: https://myapp.com,https://admin.myapp.com,https://www.myapp.com
APP_ADMIN_EMAILS
admin@company.com | Comma-separated list of admin email addresses. Receives contact form submissions and system notifications.
API_COOKIE_DOMAIN
.myapp.com | Auto-detected | Cookie domain for authentication. Set this if your API and frontend are on different subdomains (e.g., api.myapp.com and app.myapp.com). The leading dot allows sharing across subdomains.
APP_SUPPORT_EMAIL
support@myapp.com | The "Reply-To" address for emails. Also used in some default 'Need Help?' links.
VITE_API_URL
Your api url - https://api.yourdomain.com