Төслийн тойм
GSign бол enterprise-grade digital signature platform юм. API-first architecture дээр суурилсан, олон улсын стандартуудад (eIDAS, ESIGN, UETA) нийцсэн тоон гарын үсгийн шийдэл.
Project Overview
| Attribute | Value |
|---|---|
| Project Name | GSign |
| Type | Digital Signature Platform (Enterprise SaaS) |
| Target | DocuSign/Adobe Sign төстэй платформ |
| Business Model | API-first, pay-per-envelope + subscription |
Core Requirements
- Хууль ёсны гарын үсэг - eIDAS, ESIGN, UETA compliance
- API платформ - Third-party integration
- Төлбөр тооцоо - Pay-per-envelope + subscription
- Multi-tenant architecture - Organizations, teams
- Өндөр аюулгүй байдал - PKI, encryption, audit trail
Functional Areas (11 Core Modules)
| # | Module | Description |
|---|---|---|
| 1 | Document Management | Upload, storage, versioning, viewer |
| 2 | Digital Signature Workflow | Drag-drop fields, multi-party signing |
| 3 | Multi-Party Workflows | Sequential, parallel, hybrid routing |
| 4 | PKI & Certificate Management | Multiple certs per user, HSM integration |
| 5 | Authentication & Verification | Email, SMS OTP, KBA, ID verification |
| 6 | Templates | Reusable workflows, bulk send |
| 7 | Audit Trail & Compliance | Immutable logs, legal compliance |
| 8 | API Platform | RESTful API, webhooks, SDKs |
| 9 | User & Organization Management | Multi-tenant, roles, SSO |
| 10 | Notification System | Email, SMS, in-app |
| 11 | Billing & Analytics | Subscriptions, usage tracking |
System Architecture
┌─────────────────────────────────────────────────────────────────┐
│ CLIENTS │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ Web App │ │ Mobile │ │ API │ │ Webhook │ │
│ │(Next.js)│ │ (PWA) │ │ Clients │ │Consumers│ │
│ └────┬────┘ └────┬────┘ └────┬────┘ └────┬────┘ │
└───────┼────────────┼────────────┼────────────┼──────────────────┘
│ │ │ │
└────────────┴─────┬──────┴────────────┘
│
┌──────────────────────────┼──────────────────────────────────────┐
│ ┌───────────▼───────────┐ │
│ │ API Gateway │ │
│ │ (Rate Limiting) │ │
│ └───────────┬───────────┘ │
│ │ │
│ ┌──────────────────────┼──────────────────────┐ │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ ┌─────────┐ ┌─────────────────┐ ┌─────────────────┐ │
│ │Document │ │ Signature │ │ User │ │
│ │ Service │ │ Service │ │ Service │ │
│ └────┬────┘ └────────┬────────┘ └────────┬────────┘ │
│ │ │ │ │
│ └────────────────┼────────────────────┘ │
│ │ │
│ ┌───────────────────┼────────────────────┐ │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ ┌──────────┐ ┌──────────────┐ ┌──────────────────┐ │
│ │Notification│ │ Billing │ │ HSM Backend │ │
│ │ Service │ │ Service │ │ (Internal Only) │ │
│ └───────────┘ └─────────────┘ └──────────────────┘ │
│ │
│ BACKEND SERVICES │
└─────────────────────────────────────────────────────────────────┘
│
┌──────────────────────────┼──────────────────────────────────────┐
│ ▼ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ PostgreSQL │ │ MongoDB │ │ Redis │ │
│ │ (Primary) │ │ (Audit) │ │ (Cache) │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
│ │
│ DATA LAYER │
└─────────────────────────────────────────────────────────────────┘Development Timeline
| Phase | Duration | Description |
|---|---|---|
| Phase 1-2 | Weeks 1-6 | Foundation (auth, DB, basic API) |
| Phase 3-5 | Weeks 7-14 | Core features (documents, signing) |
| Phase 6-8 | Weeks 15-18 | MVP ready |
| Phase 9-11 | Weeks 19-26 | API platform, compliance |
| Phase 12-14 | Weeks 27-34 | Production launch |
Total Duration: 34 weeks (8 months)
Quick Links
- Technology Stack - Backend, Frontend, Infrastructure
- Development Environment - Server, Docker, Databases
- Master Prompt - Complete technical specification
- Development Plan - 34-week roadmap