This guide covers the complete installation process for self-hosting Minimal, from local development to production deployment.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ephraimduncan/minimal.so/llms.txt
Use this file to discover all available pages before exploring further.
Installation Methods
Choose the installation method that best fits your needs:- Local Development: Run Minimal on your local machine for testing and development
- Production Deployment: Deploy Minimal to a production server or platform
- Docker: Run Minimal in a containerized environment (coming soon)
Local Development Installation
Configure Environment
Copy the example environment file and configure it:Minimal configuration for local development:
.env
Generate a secure
BETTER_AUTH_SECRET with:Initialize Database
Generate Prisma client and push schema to database:This will create a local SQLite database at
./dev.db.Production Installation
Option 1: Platform Deployment (Vercel)
Deploy to Vercel
- Visit vercel.com and sign in
- Click “New Project” and import your repository
- Configure environment variables (see Configuration)
- Deploy
Configure Database
For production, use Turso instead of local SQLite:Add to Vercel environment variables:
TURSO_DATABASE_URLTURSO_AUTH_TOKEN
Option 2: VPS Deployment
Prepare Server
Requirements:
- Ubuntu 22.04+ or similar Linux distribution
- 2GB+ RAM
- Node.js 20+ or Bun installed
- nginx or similar reverse proxy
- SSL certificate (Let’s Encrypt recommended)
Configure Environment
Configure Reverse Proxy
Example nginx configuration:Enable site and restart nginx:
/etc/nginx/sites-available/minimal
Option 3: Docker (Coming Soon)
Docker support is planned for a future release.Database Setup
After installation, you need to set up your database. See the Database Setup guide for detailed instructions on:- Local SQLite configuration
- Turso setup and migration
- Database backup strategies
- Schema management
Verification
After installation, verify your deployment:Troubleshooting
Build Failures
If the build fails, check:- Node/Bun version: Ensure you’re using Node.js 20+ or latest Bun
- Dependencies: Delete
node_modulesand reinstall - Environment variables: Verify all required variables are set
Database Connection Issues
- Check URL format: Ensure
DATABASE_URLorTURSO_DATABASE_URLis correct - Verify permissions: Ensure the application has write access to SQLite file location
- Test connection: Use
bun run db:studioto verify database access
Runtime Errors
- Missing environment variables: Check all required variables are set
- Port conflicts: Ensure port 3000 is available or set custom
PORT - Memory issues: Increase available RAM for the process