Documentation Index
Fetch the complete documentation index at: https://mintlify.com/egeuysall/ryva-archive/llms.txt
Use this file to discover all available pages before exploring further.
Installation Guide
This guide covers the technical prerequisites and detailed setup steps for running Ryva. This is intended for users who want to understand the platform requirements or self-host Ryva.Most users don’t need this guide! If you’re signing up for hosted Ryva, see the Quickstart Guide instead.
System Requirements
Minimum Requirements
- Node.js: 20.0.0 or higher (25.1.0+ recommended)
- pnpm: 9.0.0 or higher (10.20.0+ recommended)
- Go: 1.25.3 or higher
- PostgreSQL: 14.0 or higher
- Docker & Docker Compose: Latest stable version
- Operating System: Linux, macOS, or Windows with WSL2
Optional Tools
- Air: Go hot reload tool for development
- pre-commit: Framework for managing git hooks
- Make: For running build commands
Technology Stack Overview
Frontend
Core Framework
- Next.js 16: App Router with React Server Components
- React 19: Latest React with compiler optimizations
- TypeScript 5.9: Strict type checking enabled
Styling & UI
- Tailwind CSS v4: Utility-first styling
- Radix UI: Accessible component primitives
- Lucide Icons: Modern icon library
- next-themes: Dark mode support
State Management
- TanStack Query: Server state and data synchronization
- Zustand: Client state management
- React Hook Form: Form state and validation
Integrations
- Supabase: Authentication and database
- Stripe: Payment processing
- Sentry: Error tracking
- hCaptcha: Bot protection
Backend
Core
- Go 1.25: High-performance backend
- Chi Router: Lightweight HTTP router
- PostgreSQL: Primary database
Architecture
- Clean architecture pattern
- Handler → Service → Repository layers
- Context-based request handling
- Comprehensive error handling
Installation Methods
Method 1: Automated Setup (Recommended)
The fastest way to get Ryva running locally:Run Automated Setup
- Verify all prerequisites
- Check project structure integrity
- Create
.envfiles from examples - Install dependencies (frontend + backend)
- Set up git hooks (pre-commit, pre-push, commit-msg)
Configure Environment Variables
Update the generated
.env files with your credentials:/.env- Root environment variables/apps/web/.env- Frontend configuration/apps/api/.env- Backend configuration
Method 2: Manual Setup
For more control over the installation process:Environment Configuration
Required Environment Variables
Frontend (apps/web/.env)
Backend (apps/api/.env)
Docker Setup
Ryva includes Docker support for both local development and production deployment.Local Development with Docker
Start Containers
- PostgreSQL database
- Frontend (Next.js)
- Backend (Go API)
- Caddy reverse proxy
Access Services
- Frontend: http://localhost:3000
- API: http://localhost:8080
- Via Caddy: http://localhost
Production Deployment
Database Setup
Migrations
Database migrations run automatically when the API server starts. No manual intervention needed!Creating New Migrations
If you need to create a new migration:.up.sql and .down.sql files in apps/api/db/migrations/.
Verification
Test Your Installation
Check Frontend
Visit http://localhost:3000You should see the Ryva landing page.
Available Commands
Primary Commands
Troubleshooting
Common Issues
Port Already in Use
Port Already in Use
If ports 3000 or 8080 are already in use:Or change the port in your
.env files.Database Connection Failed
Database Connection Failed
Verify your
DATABASE_URL is correct and PostgreSQL is running:Migration Errors
Migration Errors
If migrations fail to run:
- Check database connection
- Verify migration files are valid SQL
- Check migration table:
SELECT * FROM schema_migrations; - Manually roll back if needed
Module Not Found Errors
Module Not Found Errors
Clear caches and reinstall:
Production Considerations
Security
- Use strong, unique secrets for all environment variables
- Enable SSL/TLS certificates (Caddy handles this automatically)
- Configure rate limiting via Caddy
- Set up Sentry for error tracking
- Regular security updates
Performance
- Enable Redis for caching (optional)
- Configure CDN for static assets
- Use connection pooling for database
- Monitor with health check endpoints
- Set up log aggregation
Scaling
- Use managed PostgreSQL (Supabase recommended)
- Deploy API instances behind load balancer
- Use containerized deployments (Docker/Kubernetes)
- Configure auto-scaling based on metrics
Next Steps
Start Using Ryva
Follow the quickstart guide to create your first workspace
Development Guide
Learn about contributing and development workflows
For hosted Ryva users, all infrastructure is managed for you. Simply sign up and start using the platform!