Ring Platform Logo

    Завантаження документації...

    Підготовка контенту платформи Ring

    Documentation

    Welcome — mission & audiences

    Welcome to Ring Platform - Gateway Between Humanity and the Quantum World

    Library hub

    Welcome to Ring Platform - Gateway Between Humanity and the Quantum World

    Getting Started

    Index
    Prerequisites
    Installation
    Database migrations
    First Success Validation
    Troubleshooting
    Next Steps

    Architecture

    Index
    Backend modes and databases
    Data Model
    Authentication Architecture
    Email AI-CRM Architecture
    PaymentConductor architecture
    News Kingdom architecture
    Proxy and internationalization
    Real Time
    Security

    Features

    Platform Features
    Authentication
    Email AI-CRM System
    Entities
    Opportunities
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Web3 Wallet
    Multi-Vendor Store
    Payment Integration
    PaymentConductor
    WayForPay Payment Integration
    News Module - Digital Newspaper Experience

    API

    Index
    Authentication
    Email AI-CRM API
    Entities
    Opportunities
    Messaging API
    Notifications API
    Wallet
    Store API

    CLI

    Ring CLI (enterprise only)

    Customization

    Index
    Branding
    Features
    Localization
    Themes
    Components

    Deployment

    Index
    Self-hosted deployment
    Vercel
    Docker
    Environment Configuration
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery

    Development

    Index
    Local Setup
    Code Structure
    Community tooling
    Ring MCP Server
    OSS vs enterprise
    Whitelabel Navigation
    Best Practices

    Examples

    Index
    Quick Start
    Authentication
    Email AI-CRM Tutorial
    Api Integration
    Web3 Integration
    White Label
    Real World

    Integrations

    Ethereum wallets (Wagmi v3)

    Quick entry (CTOs · auditors · agents)

    Library hub
    Welcome — mission & audiences
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP
    Deploy (Docker · k8s)
    Security & compliance reads
    Ring Platform Logo

    Завантаження документації...

    Підготовка контенту платформи Ring

    Documentation

    Welcome — mission & audiences

    Welcome to Ring Platform - Gateway Between Humanity and the Quantum World

    Library hub

    Welcome to Ring Platform - Gateway Between Humanity and the Quantum World

    Getting Started

    Index
    Prerequisites
    Installation
    Database migrations
    First Success Validation
    Troubleshooting
    Next Steps

    Architecture

    Index
    Backend modes and databases
    Data Model
    Authentication Architecture
    Email AI-CRM Architecture
    PaymentConductor architecture
    News Kingdom architecture
    Proxy and internationalization

    Features

    Platform Features
    Authentication
    Email AI-CRM System
    Entities
    Opportunities
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Web3 Wallet

    API

    Index
    Authentication
    Email AI-CRM API
    Entities
    Opportunities
    Messaging API
    Notifications API
    Wallet
    Store API

    CLI

    Ring CLI (enterprise only)

    Customization

    Index
    Branding
    Features
    Localization
    Themes
    Components

    Deployment

    Index
    Self-hosted deployment
    Vercel
    Docker
    Environment Configuration
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery

    Development

    Index
    Local Setup
    Code Structure
    Community tooling
    Ring MCP Server
    OSS vs enterprise
    Whitelabel Navigation
    Best Practices

    Examples

    Index
    Quick Start
    Authentication
    Email AI-CRM Tutorial
    Api Integration
    Web3 Integration
    White Label
    Real World

    Integrations

    Ethereum wallets (Wagmi v3)

    Quick entry (CTOs · auditors · agents)

    Library hub
    Welcome — mission & audiences
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP
    Deploy (Docker · k8s)
    Security & compliance reads
    Ring Platform Logo

    Завантаження документації...

    Підготовка контенту платформи Ring

    Documentation

    Welcome — mission & audiences

    Welcome to Ring Platform - Gateway Between Humanity and the Quantum World

    Library hub

    Welcome to Ring Platform - Gateway Between Humanity and the Quantum World

    Getting Started

    Index
    Prerequisites
    Installation
    Database migrations
    First Success Validation
    Troubleshooting
    Next Steps

    Architecture

    Index
    Backend modes and databases
    Data Model
    Authentication Architecture
    Email AI-CRM Architecture
    PaymentConductor architecture
    News Kingdom architecture
    Proxy and internationalization

    Features

    Platform Features
    Authentication
    Email AI-CRM System
    Entities
    Opportunities
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Web3 Wallet

    API

    Index
    Authentication
    Email AI-CRM API
    Entities
    Opportunities
    Messaging API
    Notifications API
    Wallet
    Store API

    CLI

    Ring CLI (enterprise only)

    Customization

    Index
    Branding
    Features
    Localization
    Themes
    Components

    Deployment

    Index
    Self-hosted deployment
    Vercel
    Docker
    Environment Configuration
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery

    Development

    Index
    Local Setup
    Code Structure
    Community tooling
    Ring MCP Server
    OSS vs enterprise
    Whitelabel Navigation
    Best Practices

    Examples

    Index
    Quick Start
    Authentication
    Email AI-CRM Tutorial
    Api Integration
    Web3 Integration
    White Label
    Real World

    Integrations

    Ethereum wallets (Wagmi v3)

    Quick entry (CTOs · auditors · agents)

    Library hub
    Welcome — mission & audiences
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP
    Deploy (Docker · k8s)
    Security & compliance reads
    Member Blogs
    Scientific Editor
    Locale System
    Security & Compliance
    NFT Marketplace
    Token Staking System
    Performance Optimization Patterns
    Mobile Experience
    Admin API
    Workflow
    Code Style
    Performance
    Testing
    Deployment
    Debugging
    Contributing
    Api Examples
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)
    Real Time
    Security
    Multi-Vendor Store
    Payment Integration
    PaymentConductor
    WayForPay Payment Integration
    News Module - Digital Newspaper Experience
    Member Blogs
    Scientific Editor
    Locale System
    Security & Compliance
    NFT Marketplace
    Token Staking System
    Performance Optimization Patterns
    Mobile Experience
    Admin API
    Workflow
    Code Style
    Performance
    Testing
    Deployment
    Debugging
    Contributing
    Api Examples
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)
    Real Time
    Security
    Multi-Vendor Store
    Payment Integration
    PaymentConductor
    WayForPay Payment Integration
    News Module - Digital Newspaper Experience
    Member Blogs
    Scientific Editor
    Locale System
    Security & Compliance
    NFT Marketplace
    Token Staking System
    Performance Optimization Patterns
    Mobile Experience
    Admin API
    Workflow
    Code Style
    Performance
    Testing
    Deployment
    Debugging
    Contributing
    Api Examples
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)

    Code Structure

    Understanding Ring Platform v1.6.0 codebase architecture.

    📁 High-Level Architecture

    ring/
    ├── app/                    # Next.js 16 App Router (route groups + app/api)
    ├── components/             # Shared UI, editor, navigation, providers
    ├── features/               # Domain modules (news, store, auth, …)
    ├── lib/                    # locale-config, payments/conductor, database, tunnel
    ├── services/               # email AI CRM, blockchain oracle
    ├── locales/                # next-intl JSON bundles (en, uk, ru)
    ├── data/                   # schema.sql + migrations/
    ├── docs/content/           # MDX documentation library
    └── scripts/                # Community setup scripts (OSS)
    

    Not in public OSS tree: k8s/, cli/, propagation/ (gitignored).

    🏗️ App Directory Structure

    App Router (Next.js 16)

    app/
    ├── (public)/[locale]/      # Marketing, news, store, blog
    ├── (authenticated)/[locale]/  # Editor, entities, settings
    ├── (admin)/[locale]/       # Admin panels
    ├── (confidential)/[locale]/ # Tier-gated docs
    ├── api/                    # 132+ route handlers (auth, store, payments, …)
    ├── _actions/               # Server actions
    ├── layout.tsx
    └── proxy.ts                # Slim intl proxy (root may use proxy.ts)
    

    Key v1.6.0 modules

    AreaPath
    PaymentConductorlib/payments/conductor/
    News Kingdom

    Code Structure

    Understanding Ring Platform v1.6.0 codebase architecture.

    📁 High-Level Architecture

    ring/
    ├── app/                    # Next.js 16 App Router (route groups + app/api)
    ├── components/             # Shared UI, editor, navigation, providers
    ├── features/               # Domain modules (news, store, auth, …)
    ├── lib/                    # locale-config, payments/conductor, database, tunnel
    ├── services/               # email AI CRM, blockchain oracle
    ├── locales/                # next-intl JSON bundles (en, uk, ru)
    ├── data/                   # schema.sql + migrations/
    ├── docs/content/           # MDX documentation library
    └── scripts/                # Community setup scripts (OSS)
    

    Not in public OSS tree: k8s/, cli/, propagation/ (gitignored).

    🏗️ App Directory Structure

    App Router (Next.js 16)

    app/
    ├── (public)/[locale]/      # Marketing, news, store, blog
    ├── (authenticated)/[locale]/  # Editor, entities, settings
    ├── (admin)/[locale]/       # Admin panels
    ├── (confidential)/[locale]/ # Tier-gated docs
    ├── api/                    # 132+ route handlers (auth, store, payments, …)
    ├── _actions/               # Server actions
    ├── layout.tsx
    └── proxy.ts                # Slim intl proxy (root may use proxy.ts)
    

    Key v1.6.0 modules

    AreaPath
    PaymentConductorlib/payments/conductor/
    News Kingdom

    Code Structure

    Understanding Ring Platform v1.6.0 codebase architecture.

    📁 High-Level Architecture

    ring/
    ├── app/                    # Next.js 16 App Router (route groups + app/api)
    ├── components/             # Shared UI, editor, navigation, providers
    ├── features/               # Domain modules (news, store, auth, …)
    ├── lib/                    # locale-config, payments/conductor, database, tunnel
    ├── services/               # email AI CRM, blockchain oracle
    ├── locales/                # next-intl JSON bundles (en, uk, ru)
    ├── data/                   # schema.sql + migrations/
    ├── docs/content/           # MDX documentation library
    └── scripts/                # Community setup scripts (OSS)
    

    Not in public OSS tree: k8s/, cli/, propagation/ (gitignored).

    🏗️ App Directory Structure

    App Router (Next.js 16)

    app/
    ├── (public)/[locale]/      # Marketing, news, store, blog
    ├── (authenticated)/[locale]/  # Editor, entities, settings
    ├── (admin)/[locale]/       # Admin panels
    ├── (confidential)/[locale]/ # Tier-gated docs
    ├── api/                    # 132+ route handlers (auth, store, payments, …)
    ├── _actions/               # Server actions
    ├── layout.tsx
    └── proxy.ts                # Slim intl proxy (root may use proxy.ts)
    

    Key v1.6.0 modules

    AreaPath
    PaymentConductorlib/payments/conductor/
    News Kingdom
    features/news/services/, lib/news/
    Locale SSOTlib/locale-config.ts, i18n/routing.ts
    Scientific editorcomponents/editor/, app/api/publications/
    Email CRMservices/email/
    Member blogsapp/(public)/[locale]/blog/[username]/

    Route Groups

    • (auth) - Authentication-related pages
    • (dashboard) - Protected user dashboard
    • (public) - Public marketing pages

    🧩 Components Architecture

    Component Hierarchy

    components/
    ├── ui/               # Base UI components (shadcn/ui)
    │   ├── button.tsx
    │   ├── input.tsx
    │   └── dialog.tsx
    ├── features/         # Feature-specific components
    │   ├── entities/
    │   ├── opportunities/
    │   └── wallet/
    ├── layout/          # Layout components
    │   ├── navbar.tsx
    │   ├── sidebar.tsx
    │   └── footer.tsx
    └── shared/          # Shared business components
        ├── user-avatar.tsx
        └── loading-spinner.tsx
    

    Component Patterns

    1. Base UI Components

    // components/ui/button.tsx

    TypeScript
    typescript

    2. Feature Components

    features/news/services/, lib/news/
    Locale SSOTlib/locale-config.ts, i18n/routing.ts
    Scientific editorcomponents/editor/, app/api/publications/
    Email CRMservices/email/
    Member blogsapp/(public)/[locale]/blog/[username]/

    Route Groups

    • (auth) - Authentication-related pages
    • (dashboard) - Protected user dashboard
    • (public) - Public marketing pages

    🧩 Components Architecture

    Component Hierarchy

    components/
    ├── ui/               # Base UI components (shadcn/ui)
    │   ├── button.tsx
    │   ├── input.tsx
    │   └── dialog.tsx
    ├── features/         # Feature-specific components
    │   ├── entities/
    │   ├── opportunities/
    │   └── wallet/
    ├── layout/          # Layout components
    │   ├── navbar.tsx
    │   ├── sidebar.tsx
    │   └── footer.tsx
    └── shared/          # Shared business components
        ├── user-avatar.tsx
        └── loading-spinner.tsx
    

    Component Patterns

    1. Base UI Components

    // components/ui/button.tsx

    TypeScript
    typescript

    2. Feature Components

    features/news/services/, lib/news/
    Locale SSOTlib/locale-config.ts, i18n/routing.ts
    Scientific editorcomponents/editor/, app/api/publications/
    Email CRMservices/email/
    Member blogsapp/(public)/[locale]/blog/[username]/

    Route Groups

    • (auth) - Authentication-related pages
    • (dashboard) - Protected user dashboard
    • (public) - Public marketing pages

    🧩 Components Architecture

    Component Hierarchy

    components/
    ├── ui/               # Base UI components (shadcn/ui)
    │   ├── button.tsx
    │   ├── input.tsx
    │   └── dialog.tsx
    ├── features/         # Feature-specific components
    │   ├── entities/
    │   ├── opportunities/
    │   └── wallet/
    ├── layout/          # Layout components
    │   ├── navbar.tsx
    │   ├── sidebar.tsx
    │   └── footer.tsx
    └── shared/          # Shared business components
        ├── user-avatar.tsx
        └── loading-spinner.tsx
    

    Component Patterns

    1. Base UI Components

    // components/ui/button.tsx

    TypeScript
    typescript

    2. Feature Components

    // components/features/entities/entity-card.tsx

    TypeScript
    typescript

    🎯 Features Architecture

    Feature-Based Organization

    features/
    ├── entities/         # Entity management feature
    │   ├── components/   # Feature-specific components
    │   ├── hooks/       # Custom hooks
    │   ├── types/       # TypeScript types
    │   ├── utils/       # Feature utilities
    │   └── index.ts     # Public API
    ├── opportunities/   # Opportunities feature
    ├── wallet/         # Web3 wallet feature
    └── messaging/      # Real-time messaging
    

    Feature Module Pattern

    // features/entities/index.ts - Public API

    TypeScript
    typescript

    Custom Hooks Pattern

    // features/entities/hooks/use-entities.ts

    TypeScript
    typescript

    🔧 Lib Directory

    Shared Utilities

    lib/
    ├── auth.ts          # Auth.js configuration
    ├── firebase.ts      # Firebase setup
    ├── db.ts           # Database utilities
    ├── utils.ts        # General utilities
    ├── validations.ts  # Zod schemas
    ├── constants.ts    # App constants
    └── types.ts        # Global types
    

    Key Utilities

    Authentication Configuration

    // lib/auth.ts

    TypeScript
    typescript

    Database Utilities

    // lib/db.ts

    TypeScript
    typescript

    ⚡ Server Actions

    Server Actions Structure

    @actions/
    ├── entities/
    │   ├── create-entity.ts
    │   ├── update-entity.ts
    │   └── delete-entity.ts
    ├── opportunities/
    └── auth/
    

    // components/features/entities/entity-card.tsx

    TypeScript
    typescript

    🎯 Features Architecture

    Feature-Based Organization

    features/
    ├── entities/         # Entity management feature
    │   ├── components/   # Feature-specific components
    │   ├── hooks/       # Custom hooks
    │   ├── types/       # TypeScript types
    │   ├── utils/       # Feature utilities
    │   └── index.ts     # Public API
    ├── opportunities/   # Opportunities feature
    ├── wallet/         # Web3 wallet feature
    └── messaging/      # Real-time messaging
    

    Feature Module Pattern

    // features/entities/index.ts - Public API

    TypeScript
    typescript

    Custom Hooks Pattern

    // features/entities/hooks/use-entities.ts

    TypeScript
    typescript

    🔧 Lib Directory

    Shared Utilities

    lib/
    ├── auth.ts          # Auth.js configuration
    ├── firebase.ts      # Firebase setup
    ├── db.ts           # Database utilities
    ├── utils.ts        # General utilities
    ├── validations.ts  # Zod schemas
    ├── constants.ts    # App constants
    └── types.ts        # Global types
    

    Key Utilities

    Authentication Configuration

    // lib/auth.ts

    TypeScript
    typescript

    Database Utilities

    // lib/db.ts

    TypeScript
    typescript

    ⚡ Server Actions

    Server Actions Structure

    @actions/
    ├── entities/
    │   ├── create-entity.ts
    │   ├── update-entity.ts
    │   └── delete-entity.ts
    ├── opportunities/
    └── auth/
    

    // components/features/entities/entity-card.tsx

    TypeScript
    typescript

    🎯 Features Architecture

    Feature-Based Organization

    features/
    ├── entities/         # Entity management feature
    │   ├── components/   # Feature-specific components
    │   ├── hooks/       # Custom hooks
    │   ├── types/       # TypeScript types
    │   ├── utils/       # Feature utilities
    │   └── index.ts     # Public API
    ├── opportunities/   # Opportunities feature
    ├── wallet/         # Web3 wallet feature
    └── messaging/      # Real-time messaging
    

    Feature Module Pattern

    // features/entities/index.ts - Public API

    TypeScript
    typescript

    Custom Hooks Pattern

    // features/entities/hooks/use-entities.ts

    TypeScript
    typescript

    🔧 Lib Directory

    Shared Utilities

    lib/
    ├── auth.ts          # Auth.js configuration
    ├── firebase.ts      # Firebase setup
    ├── db.ts           # Database utilities
    ├── utils.ts        # General utilities
    ├── validations.ts  # Zod schemas
    ├── constants.ts    # App constants
    └── types.ts        # Global types
    

    Key Utilities

    Authentication Configuration

    // lib/auth.ts

    TypeScript
    typescript

    Database Utilities

    // lib/db.ts

    TypeScript
    typescript

    ⚡ Server Actions

    Server Actions Structure

    @actions/
    ├── entities/
    │   ├── create-entity.ts
    │   ├── update-entity.ts
    │   └── delete-entity.ts
    ├── opportunities/
    └── auth/
    

    Server Action Pattern

    TypeScript
    typescript

    📝 TypeScript Patterns

    Type Organization

    // types/entities.ts

    TypeScript
    typescript

    API Response Types

    // types/api.ts

    TypeScript
    typescript

    🎨 Styling Architecture

    Tailwind CSS Organization

    app/globals.css
    ├── @tailwind base;
    ├── @tailwind components;
    ├── @tailwind utilities;
    └── /* Custom component styles */
    

    Component Styling Patterns

    // Using cn utility for conditional classes

    TypeScript
    typescript

    📚 Best Practices

    1. Import Organization

    // External imports first

    TypeScript
    typescript

    2. Component File Structure

    // 1. Imports

    TypeScript
    typescript

    3. Feature Boundaries

    • Keep feature code within feature directories
    • Use public APIs for cross-feature communication
    • Avoid deep imports from other features

    Next: Development Workflow - Learn about our Git workflow and development process.

    Server Action Pattern

    TypeScript
    typescript

    📝 TypeScript Patterns

    Type Organization

    // types/entities.ts

    TypeScript
    typescript

    API Response Types

    // types/api.ts

    TypeScript
    typescript

    🎨 Styling Architecture

    Tailwind CSS Organization

    app/globals.css
    ├── @tailwind base;
    ├── @tailwind components;
    ├── @tailwind utilities;
    └── /* Custom component styles */
    

    Component Styling Patterns

    // Using cn utility for conditional classes

    TypeScript
    typescript

    📚 Best Practices

    1. Import Organization

    // External imports first

    TypeScript
    typescript

    2. Component File Structure

    // 1. Imports

    TypeScript
    typescript

    3. Feature Boundaries

    • Keep feature code within feature directories
    • Use public APIs for cross-feature communication
    • Avoid deep imports from other features

    Next: Development Workflow - Learn about our Git workflow and development process.

    Server Action Pattern

    TypeScript
    typescript

    📝 TypeScript Patterns

    Type Organization

    // types/entities.ts

    TypeScript
    typescript

    API Response Types

    // types/api.ts

    TypeScript
    typescript

    🎨 Styling Architecture

    Tailwind CSS Organization

    app/globals.css
    ├── @tailwind base;
    ├── @tailwind components;
    ├── @tailwind utilities;
    └── /* Custom component styles */
    

    Component Styling Patterns

    // Using cn utility for conditional classes

    TypeScript
    typescript

    📚 Best Practices

    1. Import Organization

    // External imports first

    TypeScript
    typescript

    2. Component File Structure

    // 1. Imports

    TypeScript
    typescript

    3. Feature Boundaries

    • Keep feature code within feature directories
    • Use public APIs for cross-feature communication
    • Avoid deep imports from other features

    Next: Development Workflow - Learn about our Git workflow and development process.