Skip to content
garotm edited this page Nov 29, 2024 · 2 revisions

fleXRP Wiki

Welcome to the fleXRP Wiki! This wiki serves as the central knowledge base for the fleXRP payment gateway project.

Quick Navigation

Core Documentation

Contributing

Getting Started

fleXRP is a comprehensive payment gateway that enables merchants to easily accept XRP payments. This section will help you get started with the project.

Prerequisites

  • Python 3.11+
  • Docker
  • Git
  • XRP Testnet Account (for development)

Local Development Setup

  1. Clone the repository:
git clone https://github.com/fleXRPL/fleXRP.git
cd fleXRP
  1. Install dependencies:
pip install -r requirements.txt
pip install -r requirements-dev.txt
  1. Set up environment variables:
cp .env.example .env
# Edit .env with your configuration

Architecture Overview

fleXRP follows a modular architecture designed for scalability and maintainability:

Core Components

  • API Layer (/src/api/)

    • RESTful endpoints
    • WebSocket connections
    • Authentication/Authorization
  • Core Services (/src/core/)

    • Error handling
    • Monitoring
    • Metrics collection
  • Business Logic (/src/services/)

    • Payment processing
    • Wallet management
    • Rate calculations

Technology Stack

  • Backend: Python/Flask
  • Database: PostgreSQL
  • Caching: Redis
  • Message Queue: RabbitMQ
  • Frontend: TailwindCSS

Development Guide

Code Structure

fleXRP/
├── docker                 # Docker configuration files and compose setup
├── docs                   # Documentation and API specifications
├── node_modules           # NodeJS dependencies and modules
├── src                    # Python source code
│   ├── api                # API implementation and routes
│   ├── core               # Core business logic and utilities
│   └── services           # Service layer for business operations
└── tests                  # Test suite
    ├── api                # API endpoint and integration tests
    ├── core               # Core functionality unit tests
    └── services           # Service layer business logic tests

Testing

Run the test suite:

pytest

Code Style

We follow PEP 8 guidelines and use:

  • Black for code formatting
  • Flake8 for linting
  • MyPy for type checking

API Reference

See our API Reference guide for detailed API documentation.

Integration Guide

See our Integration Guide for details on deployment and integration.

Support

License

This project is licensed under the MIT License - see the LICENSE file for details.


This documentation is maintained by the fleXRP team.