Production Requirements
Before deploying Noteverse, ensure your environment meets these requirements:Runtime Environment
- Node.js: Version 18.x or higher
- Package Manager: npm, yarn, or pnpm
- Database: PostgreSQL (with Prisma ORM)
- WebSocket Support: Required for real-time collaboration
Database
Noteverse uses PostgreSQL with Prisma as the ORM. You’ll need:- PostgreSQL 12+ instance
- Connection string with appropriate permissions
- Support for Prisma migrations
Server Requirements
Noteverse uses a custom Node.js server (
server.mjs) to support Socket.IO for real-time features. Standard Next.js serverless deployments won’t support WebSocket connections.- WebSocket support for Socket.IO
- HTTP server for Next.js application
- Port 3000 (default, configurable)
Environment Variables
Configure these environment variables for production:Build Process
The standard build process includes:Install Dependencies
Install all required packages:This automatically runs
prisma generate via the postinstall script.Deployment Options
Noteverse can be deployed to various platforms:Vercel
Recommended for easy deployment with automatic CI/CD integration.
- Automatic deployments from Git
- Built-in Vercel Blob storage support
- Environment variable management
- WebSocket considerations apply (see Vercel deployment guide)
Docker
Ideal for self-hosted environments and full control over infrastructure.
- Multi-stage build for optimized images
- Docker Compose for PostgreSQL integration
- Portable across cloud providers
- Full WebSocket support
Other Platforms
Noteverse can be deployed to any platform that supports:- Node.js 18+ runtime
- WebSocket connections
- PostgreSQL databases
- Railway: Node.js and PostgreSQL support with WebSockets
- Render: Native WebSocket support
- DigitalOcean App Platform: Docker-based deployments
- AWS EC2/ECS: Full control with Docker or direct deployment
- Heroku: Supports WebSockets with appropriate dynos
Storage Configuration
Vercel Blob (Recommended for Vercel)
Noteverse uses@vercel/blob for file storage:
Alternative Storage
For non-Vercel deployments, configure:- AWS S3
- Cloudflare R2
- DigitalOcean Spaces
- Self-hosted storage solutions
Real-time Features
Noteverse’sserver.mjs handles:
- User registration and presence
- Real-time content synchronization
- Live user tracking
- Collaborative editing events
Health Checks
Implement health check endpoints for production monitoring:- Database connectivity
- WebSocket connections
- Server uptime
- Memory usage
Next Steps
Choose your deployment platform:Deploy to Vercel
Quick deployment with automatic CI/CD
Deploy with Docker
Self-hosted deployment with containers