Go to file
2026-09-05 12:19:42 +07:00
.claude Add design specifications for authentication flow, update README, and enhance .gitignore 2026-08-22 19:23:56 +07:00
admin.profitra.id feat: enhance tenant management with status update functionality and UI improvements 2026-09-05 09:44:27 +07:00
api.profitra.id feat: implement services management with CRUD operations and UI integration 2026-09-05 12:19:42 +07:00
docs feat: initialize monorepo structure with workspaces and shared package 2026-08-23 02:13:55 +07:00
profitra.id feat: integrate Tailwind CSS and update routing logic for tenant management 2026-09-05 10:30:33 +07:00
shared feat: add TenantLayout component and update routing for dashboard with sidebar integration 2026-09-05 10:44:44 +07:00
tenants/barbershop feat: implement services management with CRUD operations and UI integration 2026-09-05 12:19:42 +07:00
.gitignore feat: initialize monorepo structure with workspaces and shared package 2026-08-23 02:13:55 +07:00
bun.lock feat: add TenantLayout component and update routing for dashboard with sidebar integration 2026-09-05 10:44:44 +07:00
CLAUDE.md Refactor code structure for improved readability and maintainability 2026-09-05 09:53:56 +07:00
package.json feat: add development scripts for parallel execution of services 2026-09-05 09:50:23 +07:00

Profitra

Sistem manajemen bisnis berbasis subscription dengan arsitektur multi-tenant.

Tech Stack

  • Frontend: Vue.js 3 + Vite + TypeScript + Tailwind CSS
  • Backend API: Laravel 11 + PHP 8.4
  • Database: SQLite (dev) / MySQL (production)
  • Deployment: VPS (DigitalOcean) + Nginx

Struktur Projek

profitra/
├── profitra.id/           # Frontend (Vue.js + Vite) - Homepage, registrasi, onboarding
├── admin.profitra.id/     # Frontend (Vue.js + Vite) - Dashboard internal admin
├── api.profitra.id/       # Backend API (Laravel) - REST API untuk semua app
└── docs/                  # Dokumentasi projek

Arsitektur

graph TB
    subgraph "Frontend"
        FE1["profitra.id<br/>(Vue.js)"]
        FE2["admin.profitra.id<br/>(Vue.js)"]
    end

    subgraph "Backend API"
        API["api.profitra.id<br/>(Laravel)"]
    end

    subgraph "Database"
        DB[("MySQL<br/>profitra_main")]
    end

    FE1 --> API
    FE2 --> API
    API --> DB

Flow Singkat

Registrasi → Verifikasi Email / Google Login → Onboarding Wizard (3 Step) → Provisioning → Dashboard
  1. Registrasi: User buat akun (username, email, password) atau login with Google
  2. Verifikasi Email: Klik link verifikasi (tidak perlu untuk Google login)
  3. Onboarding Wizard:
    • Step 1: Pilih lini bisnis (barbershop, toko baju, dll)
    • Step 2: Isi data bisnis (nama, subdomain + cek & lock, alamat, detail)
    • Step 3: Pilih paket (Basic / Pro / Bisnis)
  4. Provisioning: Klik Simpan → buat database, migration, subdomain
  5. Dashboard: Redirect ke subdomain, langsung pakai

Login Flow

  • Login dilakukan di profitra.id (bukan di subdomain tenant)
  • Setelah login, cek role user:
    • Admin Internal → stay di admin.profitra.id
    • Tenant Owner → redirect ke subdomain miliknya (misal: tokobukudion.profitra.id)

Paket

Paket Harga Fitur
Basic Gratis Fitur dasar
Pro Rp 99.000/bulan Fitur lengkap
Bisnis Rp 299.000/bulan Fitur premium + API

Dokumentasi

Dokumen Deskripsi
Architecture Arsitektur sistem & multi-tenancy
Flow Flow registrasi, onboarding & provisioning
Design Design system & spesifikasi UI flow auth
Diagrams Diagram alur lengkap (Mermaid)
Database Schema database central & tenant
API Design REST API design guidelines & best practices
Deployment Setup VPS & deployment ke production
Commands Custom artisan commands (API)