Skip to content

Jonathan06891/api-gate-hub

Repository files navigation

Agent Bank

A Django-based banking application for AI agents.

Overview

Agent Bank allows users (Merchants) to have a bank account, receive payments via Stripe, and manage their balance.

Setup

  1. Clone the repository:

    git clone <repository_url>
    cd agent_bank
  2. Install dependencies:

    pip install -r requirements.txt
  3. Environment Variables: Create a .env file or set the following environment variables:

    • SECRET_KEY: Django secret key (required for production).
    • DEBUG: Set to True for development, False for production (default: False).
    • ALLOWED_HOSTS: Comma-separated list of allowed hosts (default: agent-bank.onrender.com,localhost,127.0.0.1).
    • STRIPE_PUBLISHABLE_KEY: Stripe publishable key.
    • STRIPE_SECRET_KEY: Stripe secret key.
    • STRIPE_WEBHOOK_SECRET: Stripe webhook secret.
  4. Run Migrations:

    python manage.py migrate
  5. Run Server:

    python manage.py runserver

Key Features

  • Account Management: Automatic account creation for users.

  • Ledger: Immutable audit trail for all transactions.

  • Atomic Updates: Balance updates are atomic to prevent race conditions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published