{"id":28293257,"url":"https://github.com/x0rd3v1l/payment-backend-service","last_synced_at":"2026-05-18T04:31:58.612Z","repository":{"id":294715101,"uuid":"987842205","full_name":"X0rD3v1L/payment-backend-service","owner":"X0rD3v1L","description":"Rust-based backend service for payment processing, featuring database migrations, Docker support, and API documentation.","archived":false,"fork":false,"pushed_at":"2025-05-21T17:28:39.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T22:39:27.407Z","etag":null,"topics":["backend","restful-api","rocket","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/X0rD3v1L.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-21T17:04:31.000Z","updated_at":"2025-05-21T17:36:15.000Z","dependencies_parsed_at":"2025-05-21T18:46:01.069Z","dependency_job_id":"142d52db-6d5f-4b38-9d3a-e2a3c572a56e","html_url":"https://github.com/X0rD3v1L/payment-backend-service","commit_stats":null,"previous_names":["x0rd3v1l/payment-backend-service"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/X0rD3v1L/payment-backend-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X0rD3v1L%2Fpayment-backend-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X0rD3v1L%2Fpayment-backend-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X0rD3v1L%2Fpayment-backend-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X0rD3v1L%2Fpayment-backend-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/X0rD3v1L","download_url":"https://codeload.github.com/X0rD3v1L/payment-backend-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X0rD3v1L%2Fpayment-backend-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274342485,"owners_count":25267674,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["backend","restful-api","rocket","rust"],"created_at":"2025-05-22T06:09:42.905Z","updated_at":"2025-10-06T07:37:13.946Z","avatar_url":"https://github.com/X0rD3v1L.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Payment Backend Service\n\n**Payment Backend Service** contains RESTful API endpoints for User, Account and Transaction Management.\n\n## 🛠️ Technologies Used\n\n* **Programming Language**: Rust\n* **Containerization**: Docker\n* **Database**: PostgreSQL\n* **ORM**: SeaORM\n* **Web Framework**: Rocket\n\n## 📁 Project Structure\n\n```\n├── api_docs..md\n├── Cargo.lock\n├── Cargo.toml\n├── docker-compose.yml\n├── README.md\n├── src\n│   ├── auth\n│   │   └── mod.rs\n│   ├── controllers\n│   │   ├── accounts.rs\n│   │   ├── auth.rs\n│   │   ├── mod.rs\n│   │   ├── profile.rs\n│   │   └── transactions.rs\n│   ├── db\n│   │   └── mod.rs\n│   ├── entities\n│   │   ├── account.rs\n│   │   ├── mod.rs\n│   │   ├── prelude.rs\n│   │   ├── transactions.rs\n│   │   ├── txns.rs\n│   │   └── users.rs\n│   ├── fairings\n│   │   ├── cors.rs\n│   │   └── mod.rs\n│   ├── kafka\n│   │   ├── consumer.rs\n│   │   ├── mod.rs\n│   │   └── producer.rs\n│   ├── lib.rs\n│   ├── main.rs\n│   ├── migrator\n│   │   ├── m20250521_135328_create_users_table.rs\n│   │   ├── m20250521_135711_create_accounts_table.rs\n│   │   ├── m20250521_135737_store_transactions_table.rs\n│   │   └── mod.rs\n│   └── utils\n│       ├── mod.rs\n│       ├── random.rs\n│       └── validations.rs\n└── tests\n    └── endpoint_test.rs\n\n11 directories, 33 files\n```\n\n\n\n## ⚙️ Getting Started\n\n### Prerequisites\n\n* Rust (latest stable version)\n* Docker \u0026 Docker Compose\n* psql (PostgreSQL) 17.5 (Ubuntu 17.5-1.pgdg24.04+1)\n\n### Installation\n\n1. **Clone the repository**:\n\n   ```bash\n   git clone https://github.com/X0rD3v1L/payment-backend-service.git\n   cd payment-backend-service\n   ```\n\n2. **Set up environment variables**:\n\n   Create a `.env` file in the root directory and configure the necessary environment variables.\n   ```\n   PAYMENTS_JWT_SECRET=\"REDACTED\"\n   ```\n\n   To generate,\n   ```openssl rand -base64 64```\n\n\n3. **Build and run the application**:\n   \n   Make sure a database named `payments` exists in your local psql.\n\n   ```bash\n   cargo build\n   cargo run\n   ```\n\n   In another terminal,\n   ```bash\n   docker-compose up \n   ```\n\nThe service should now be running and accessible at `http://127.0.0.1:8000`.\n\n## 🧪 Running Tests\n\nTo execute the test suite:\n\n```bash\ncargo test\n```\n\nA sample test case was written to test the usage, comprenshive unit tests and integration tests need to be written.\n\n## 📄 API Documentation\n\nDetailed API documentation is available in the [`api_docs.md`](./api_docs.md) file. It provides comprehensive information on available endpoints, request/response structures, and usage examples.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx0rd3v1l%2Fpayment-backend-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx0rd3v1l%2Fpayment-backend-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx0rd3v1l%2Fpayment-backend-service/lists"}