{"id":26871437,"url":"https://github.com/thomashawk11/ton-ticket","last_synced_at":"2025-03-31T07:19:31.705Z","repository":{"id":284752856,"uuid":"955941609","full_name":"ThomasHawk11/ton-ticket","owner":"ThomasHawk11","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-27T13:15:28.000Z","size":3164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T14:25:55.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ThomasHawk11.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}},"created_at":"2025-03-27T12:53:54.000Z","updated_at":"2025-03-27T13:15:32.000Z","dependencies_parsed_at":"2025-03-27T14:37:24.288Z","dependency_job_id":null,"html_url":"https://github.com/ThomasHawk11/ton-ticket","commit_stats":null,"previous_names":["thomashawk11/ton-ticket"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasHawk11%2Fton-ticket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasHawk11%2Fton-ticket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasHawk11%2Fton-ticket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasHawk11%2Fton-ticket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThomasHawk11","download_url":"https://codeload.github.com/ThomasHawk11/ton-ticket/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429471,"owners_count":20775809,"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-03-31T07:19:31.261Z","updated_at":"2025-03-31T07:19:31.699Z","avatar_url":"https://github.com/ThomasHawk11.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ton Ticket - Microservices Ticket Management System\n\nA comprehensive ticket management system built with a microservices architecture.\n\n## Architecture Overview\n\nThe system is composed of the following microservices:\n\n1. **API Gateway** - Entry point for all client requests, handles routing and basic request validation\n2. **Auth Service** - Manages user authentication and authorization\n3. **User Service** - Handles user profile management\n4. **Event Service** - Manages event creation and details\n5. **Ticket Service** - Handles ticket inventory, reservations, and purchases\n6. **Frontend** - React-based user interface\n\n## Architecture Diagram\n\n```mermaid\ngraph TD\n    Client[Client Browser] --\u003e Frontend[Frontend React App]\n    Client --\u003e AdminPanel[Admin Panel React App]\n    Frontend --\u003e Gateway[API Gateway]\n    AdminPanel --\u003e Gateway\n    \n    Gateway --\u003e AuthService[Auth Service]\n    Gateway --\u003e UserService[User Service]\n    Gateway --\u003e EventService[Event Service]\n    Gateway --\u003e TicketService[Ticket Service]\n    \n    AuthService --\u003e AuthDB[(Auth Database)]\n    UserService --\u003e UserDB[(User Database)]\n    EventService --\u003e EventDB[(Event Database)]\n    TicketService --\u003e TicketDB[(Ticket Database)]\n    \n    AuthService -.-\u003e RabbitMQ{RabbitMQ}\n    UserService -.-\u003e RabbitMQ\n    EventService -.-\u003e RabbitMQ\n    TicketService -.-\u003e RabbitMQ\n    \n    classDef service fill:#4CAF50,stroke:#009688,color:white;\n    classDef database fill:#2196F3,stroke:#0D47A1,color:white;\n    classDef client fill:#FF9800,stroke:#E65100,color:white;\n    classDef messagebroker fill:#9C27B0,stroke:#4A148C,color:white;\n    \n    class AuthService,UserService,EventService,TicketService service;\n    class AuthDB,UserDB,EventDB,TicketDB database;\n    class Client,Frontend,AdminPanel client;\n    class RabbitMQ messagebroker;\n    class Gateway service;\n```\n\n## Technology Stack\n\n- **Frontend**: React\n- **Backend**: Node.js with Express\n- **Database**: MySQL (separate database per service)\n- **Message Broker**: RabbitMQ for asynchronous communication between services\n- **Containerization**: Docker and Docker Compose\n- **Database Admin**: PHPMyAdmin for each service database\n\n## Getting Started\n\n### Prerequisites\n\n- Docker and Docker Compose installed\n- Node.js and npm installed (for local development)\n\n### Installation and Setup\n\n1. Clone the repository\n2. Run `docker-compose up` in the root directory\n3. Access the application at `http://localhost:3000`\n4. Access PHPMyAdmin at `http://localhost:8080`\n\n## Services and Ports\n\n- Frontend: `http://localhost:3000`\n- API Gateway: `http://localhost:3001`\n- Auth Service: `http://localhost:3002`\n- User Service: `http://localhost:3003`\n- Event Service: `http://localhost:3004`\n- Ticket Service: `http://localhost:3005`\n- RabbitMQ Management: `http://localhost:15672`\n- PHPMyAdmin: `http://localhost:8080`\n\n## Data imports\n\nYou can download the SQL import files in [db_imports.zip](https://github.com/ThomasHawk11/ton-ticket/raw/main/db_imports.zip)\n\n## API Documentation\n\nAPI documentation is available at `http://localhost:3001/api-docs` after starting the services.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomashawk11%2Fton-ticket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomashawk11%2Fton-ticket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomashawk11%2Fton-ticket/lists"}