Steps:
- Visit: https://railway.app/
- Sign in with GitHub
- Click "New Project" → "Provision PostgreSQL"
- Copy connection string
- Update
.envwithDATABASE_URL
Pros: Free, fast, good UI, automatic backups Cons: 500 hours/month limit (sufficient for development)
Steps:
- Visit: https://supabase.com/
- Sign in with GitHub
- Create new project
- Go to Settings → Database → Connection string
- Update
.envwithDATABASE_URL
Pros: Free forever, generous limits, built-in auth Cons: Slightly slower cold starts
Steps:
- Visit: https://neon.tech/
- Sign in with GitHub
- Create new project
- Copy connection string
- Update
.envwithDATABASE_URL
Pros: Serverless, auto-scales, free tier Cons: New platform (less mature)
Steps:
# macOS (Homebrew)
brew install postgresql@15
brew services start postgresql@15
# Create database
createdb narrativeforge
# Connection string
DATABASE_URL="postgresql://$(whoami)@localhost:5432/narrativeforge?schema=public"Pros: Full control, no limits, fastest Cons: Requires local setup, not production-ready
I'll open Railway for you. After getting the connection string:
# Update .env
DATABASE_URL="postgresql://postgres:password@host:5432/railway"
# Run migrations
cd /Users/eli5defi/.openclaw/workspace/StoryEngine/packages/database
npm install
npx prisma migrate dev --name init
# Seed example data
npx prisma db seed
# Generate Prisma client
npx prisma generate