{"id":27941934,"url":"https://github.com/spacetesla/payzee","last_synced_at":"2025-05-07T11:24:06.989Z","repository":{"id":290427599,"uuid":"973188344","full_name":"SpaceTesla/Payzee","owner":"SpaceTesla","description":"💵 Pay Easy, Payzee!","archived":false,"fork":false,"pushed_at":"2025-05-06T09:49:22.000Z","size":186,"stargazers_count":2,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T10:48:36.243Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://payzee.netlify.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpaceTesla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-26T13:05:00.000Z","updated_at":"2025-05-06T09:49:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"d3eab559-1379-4bcf-8736-413ccd34a0e5","html_url":"https://github.com/SpaceTesla/Payzee","commit_stats":null,"previous_names":["spacetesla/payzee"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceTesla%2FPayzee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceTesla%2FPayzee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceTesla%2FPayzee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceTesla%2FPayzee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpaceTesla","download_url":"https://codeload.github.com/SpaceTesla/Payzee/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252866787,"owners_count":21816542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-07T11:24:06.271Z","updated_at":"2025-05-07T11:24:06.963Z","avatar_url":"https://github.com/SpaceTesla.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Payzee: Pay Easy, Payzee!\n\n**Payzee** is a modern payment processor powered by **Central Bank Digital Currency (CBDC)** — also known as the **Digital Rupee** or **e-rupee (e₹)**.\n\n## 📁 Project Structure\n\n```\n├── app.py             # Main FastAPI application entry point  \n├── db/                # Redis database configuration and operations  \n├── models/            # Data models for transactions, users, and payment entities  \n├── routes/            # API endpoints for payments and authentication  \n├── middleware/        # Request/response middleware components  \n├── utils/             # Helper utilities and common functions  \n├── tests/             # Unit and integration tests  \n└── scripts/           # Development and setup scripts  \n```\n\n## 🚀 Setup for Development\n\n### Prerequisites\n\n* Python 3.11+\n* Redis server\n* [Poetry](https://python-poetry.org/) for dependency management\n\n### ⚡ Quick Start\n\nRun the setup script to prepare your development environment:\n\n```bash\n./scripts/run.sh\n```\n\nThis script will:\n\n* Install Poetry (if not already installed)\n* Set up necessary `PATH` variables\n* Install project dependencies\n* Start the development server with hot-reload\n\n## 🐳 Docker Setup (Recommended)\n\n### 1. Start the full stack\n\nUsing Docker Compose:\n\n```bash\ndocker-compose up -d\n```\n\nOr with Make:\n\n```bash\nmake up\n```\n\n### 2. Run the app manually with Docker\n\n```bash\n# Build the API container\ndocker build -t payzee-api -f docker/prod.Dockerfile .\n\n# Run the API container\ndocker run -p 8000:8000 --env-file .env payzee-api\n```\n\n## 🧰 Manual Setup\n\n### 1. Install Poetry\n\n* **Windows**:\n\n  ```bash\n  (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -\n  ```\n\n* **Linux/macOS**:\n\n  ```bash\n  curl -sSL https://install.python-poetry.org | python3 -\n  ```\n\n### 2. Start Redis using Docker\n\n```bash\ndocker run --name payzee-redis -p 6379:6379 -d redis:latest\n```\n\n### 3. Install project dependencies\n\n```bash\npoetry install\n```\n\n### 4. Start the development server\n\n```bash\npoetry run uvicorn app:app --reload\n```\n\n## 🧪 Development Tools\n\n### ✅ Testing\n\nRun tests with `pytest`:\n\n```bash\n# Using poetry\npoetry run pytest\n\n# Or with Make\nmake test\n```\n\n### 🧼 Pre-commit Hooks\n\nWe use **pre-commit** hooks with **Ruff** for linting and formatting.\n\nHooks handle:\n\n* Removing trailing whitespace\n* Ensuring files end with a newline\n* Checking JSON/YAML syntax\n* Python linting \u0026 formatting with Ruff\n\nPre-commit is installed with project dependencies.\n\nTo run all hooks manually:\n\n```bash\npoetry run pre-commit run --all-files\n```\n\nOr use Make:\n\n```bash\nmake lint     # Run Ruff linting\nmake format   # Format code using Ruff\n```\n\n## 🧠 Redis Management\n\nRedisInsight is available via Docker at:\n👉 [http://localhost:5540](http://localhost:5540)\n\nTo connect:\n\n1. Click **Add Redis database**\n2. Use one of the following connection strings:\n\n   * `redis://redis:6379`\n   * `redis://host.docker.internal:6379`\n\nThis allows inspection of Redis data and keyspaces.\n\n## 📘 API Documentation\n\nOnce the app is running, open Swagger UI at:\n👉 [http://localhost:8000/docs](http://localhost:8000/docs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacetesla%2Fpayzee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspacetesla%2Fpayzee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacetesla%2Fpayzee/lists"}