mirror of
https://github.com/Dvorinka/Primora.git
synced 2026-06-03 20:13:01 +00:00
2.0 KiB
2.0 KiB
Primora Production Ready Upgrade
The Primora Platform has been enhanced to be a fully working, production-ready alternative to Appwrite/Supabase, optimized for single developers and smaller teams.
🚀 Key Enhancements
1. Expanded Authentication
- Added Discord Provider: Configure
DISCORD_CLIENT_IDandDISCORD_CLIENT_SECRET. - Added Microsoft Provider: Configure
MICROSOFT_CLIENT_ID,MICROSOFT_CLIENT_SECRET, andMICROSOFT_TENANT_ID. - Better-Auth Integration: Robust social login flow on the frontend with native icons.
2. "Collections" - JSON Document Store
- New Feature: A simplified database layer for storing dynamic JSON documents.
- Backend implementation: New
core.collectionsandcore.documentstables in PostgreSQL with GIN indexing for fast JSONB search. - API Endpoints: Full CRUD for Collections and Documents in the Go backend.
- Frontend UI: A new
Collectionspage for managing data, creating schemas, and editing documents in a JSON editor.
3. Production Infrastructure
- Multi-stage Dockerfiles: Optimized builds for both Backend (Go) and Frontend (Vite/Nginx).
- Security-First Compose: Pinned images, health checks, and secure reverse proxy setup.
- Nginx Reverse Proxy: Single entry point for Frontend, API, and Auth services with SPA routing support.
4. Simplified Deployment
- One-Click Setup: New
scripts/setup.shscript to automate everything.- Generates
.envfrom template. - Automatically generates secure JWT and Auth secrets.
- Configures domains and starts the Docker stack.
- Generates
🛠️ Getting Started in Production
- Run the setup script:
./scripts/setup.sh - Follow the prompts to set your domain (default
localhost). - Access your dashboard and start building!
📦 What's Inside?
- Frontend: SolidJS + Tailwind (Nginx)
- Backend: Go (Gin + pgx)
- Auth: Node.js (Better-Auth + Hono)
- Database: PostgreSQL 17
- Cache: DragonflyDB (Redis compatible)
- Email: Mailpit (Dev/Local)
- Proxy: Nginx