Introduction
Neuron Meet is a full-stack video conferencing application built with NestJS (backend) and React + Vite (frontend). This guide covers various deployment options to get your instance running in production.Architecture
Neuron Meet consists of three main components:- Frontend (Client): React application built with Vite, handles UI and WebRTC connections
- Backend (Server): NestJS application with REST API and WebSocket support for real-time communication
- Database: PostgreSQL database managed with Prisma ORM
Deployment Options
Docker
Deploy the entire stack with Docker Compose for easy orchestration
Vercel
Deploy the frontend to Vercel’s edge network
Railway
Deploy the full application on Railway with automatic provisioning
Manual
Deploy to your own VPS or server infrastructure
Prerequisites
Before deploying Neuron Meet, ensure you have:Node.js 18.0.0 or higher
PostgreSQL 15 or higher (or a Supabase account)
Domain name with SSL/TLS certificate (recommended for production)
TURN server credentials (optional but recommended for production)
Docker Deployment
The quickest way to deploy Neuron Meet is using Docker Compose:Start the services
- PostgreSQL on port 5432
- Backend server on port 3001
- Frontend client on port 80
Vercel Deployment
Vercel is ideal for deploying the frontend client:Deploy the client
vercel.json which includes:- Client build from
client/dist - SPA routing rewrites
- Security headers (X-Content-Type-Options, X-Frame-Options, X-XSS-Protection)
You’ll need to deploy the backend separately (Railway, VPS, etc.) and update the frontend environment variables to point to it.
Railway Deployment
Railway can host the full stack application:Create a Railway account
Sign up at railway.app
Create a new project
- Add a PostgreSQL database service
- Add a new service from your GitHub repository
Configure environment variables
Set all required environment variables in the Railway dashboard.Railway will automatically provide
DATABASE_URL from the PostgreSQL service.Manual Deployment
For custom infrastructure:Set up PostgreSQL
Install PostgreSQL 15+ or use a managed service like Supabase.See Database Setup for details.
Configure environment
Create a
.env file with all required variables.Next Steps
Environment Variables
Configure all required environment variables
Database Setup
Set up and migrate your PostgreSQL database
Production Checklist
Secure and optimize for production